-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add arch/version to cpu profiler #24658
base: dev
Are you sure you want to change the base?
Add arch/version to cpu profiler #24658
Conversation
travisdowns
commented
Dec 24, 2024
- debug api: wrong ID for cpu_profile_shard_samples
- remove unused headers
- utils: add arch library
- cpu_profiler: expose the sample period
- admin: include more info in cpu profile sample
id was set to cpu_profile_sample, should be cpu_profile_shard_samples.
A small header which exposes the architecture of the current process as a constexpr value. We will use this in the cpu_profiler in order to record the arch in the output. Includes a (very trivial) test.
Expose this so we can include it in the admin API result. This can be useful to estimate how busy the reactor was, as we can calculate the utilization based on the expected number of samples (at 100% util) vs the observed number.
Change the output format of the cpu profiler API to include: - The CPU architecture - The version string - The wait_ms, if specified - The profiler sample period - The schema version of the API response The first two of the above enable us to symbolize profiles directly from the result without needing to know the version/arch and download symbols separately.
1b69f68
to
d339977
Compare
Retry command for Build#60132please wait until all jobs are finished before running the slash command
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Some tests will need updating.
Is there a reason you didn't update the memory profiler as well?
CI test resultstest results on build#60132
test results on build#60226
|
No it's coming, mostly just wanted to put this v1 up to see if there were concerns with the approach, etc. |
Add an option to set the stack depth of the of spin loop in the stress fiber, i.e., the spin loop will at the end of a recursive call chain (not inlined) of depth N. Good for stressing CPU proflier.
Retry command for Build#60226please wait until all jobs are finished before running the slash command
|