Repository navigation
UCS/PROFILE: added ucx env to profiling output - #8918
Merged
yosefe merged 1 commit intoJun 1, 2023
Merged
Conversation
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
2 times, most recently
from
March 8, 2023 13:30
f2dacd8 to
427f786
Compare
yosefe
reviewed
Mar 9, 2023
| uint32_t version; /**< File format version */ | ||
| char ucs_path[1024]; /**< UCX library path*/ | ||
| char cmdline[1024]; /**< Command line */ | ||
| char env_variables[1024]; /**< UCX environment variables*/ |
Member
There was a problem hiding this comment.
- it means older parser could not read profile from newer version and vice versa?
need to try make it compatible and update file format version accordingly - better allocate exactly as much space as needed since the list of env vars could be long/short in different cases
| /* write header */ | ||
| memset(&header, 0, sizeof(header)); | ||
| ucs_read_file(header.cmdline, sizeof(header.cmdline), 1, "/proc/self/cmdline"); | ||
| strncpy(header.cmdline, ucs_get_process_cmdline(), sizeof(header.cmdline) - 1); |
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
from
March 12, 2023 17:08
427f786 to
7d3d114
Compare
roiedanino
marked this pull request as draft
March 12, 2023 17:10
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
from
March 13, 2023 15:23
7d3d114 to
f20c1ec
Compare
gleon99
reviewed
Mar 13, 2023
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
3 times, most recently
from
March 15, 2023 11:53
cfa9ab5 to
8eba5d0
Compare
roiedanino
marked this pull request as ready for review
March 15, 2023 12:04
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
16 times, most recently
from
March 22, 2023 11:18
5abc2fd to
6f1c1ea
Compare
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
from
March 22, 2023 13:24
6f1c1ea to
84acecc
Compare
yosefe
reviewed
Apr 30, 2023
Comment on lines
+99
to
+101
| ucs_profile_block_t locations_block; /**< Size and offset of locations*/ | ||
| ucs_profile_block_t threads_block; /**< Size and offset of threads*/ | ||
| ucs_profile_block_t env_block; /**< Size and offset of environment variables string*/ |
Member
There was a problem hiding this comment.
ucs_profile_block_header_t locations;
ucs_profile_block_header_t threads;
ucs_profile_block_header_t env_vars;
Member
|
@roiedanino pls fix the commit title |
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
2 times, most recently
from
May 10, 2023 09:14
4112430 to
91dd1df
Compare
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
2 times, most recently
from
May 16, 2023 09:37
0cdd030 to
081b9c4
Compare
yosefe
reviewed
May 17, 2023
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
3 times, most recently
from
May 22, 2023 06:07
aa1f5b8 to
d79d118
Compare
yosefe
reviewed
May 22, 2023
yosefe
left a comment
Member
There was a problem hiding this comment.
pls check clang-format output after every PR update
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
2 times, most recently
from
May 23, 2023 09:05
ee374e7 to
509d1af
Compare
yosefe
reviewed
May 23, 2023
yosefe
reviewed
May 23, 2023
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
4 times, most recently
from
May 24, 2023 14:23
93c8706 to
3839142
Compare
yosefe
reviewed
May 24, 2023
yosefe
reviewed
May 30, 2023
yosefe
left a comment
Member
There was a problem hiding this comment.
pls check clang-format, some code style issues are relevant
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
2 times, most recently
from
May 31, 2023 10:00
0c9672e to
eb0c981
Compare
…e structure TEST/GTEST/UCS/TEST_PROFILE: updated tests according to the changes in the file structure TEST/GTEST/UCS/TEST_PROFILE: added support for env from cmdline
roiedanino
force-pushed
the
profiling/add-full-cmdline-and-env
branch
from
May 31, 2023 15:06
eb0c981 to
5bf3df8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
In the profiling output file: printing the full command line and adding env variables
Why ?
That way we can know exactly what was executed when analyzing the .prof file.