GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Prefer perf-events engine when record-cpu or target-cpu are selected by Baraa-Hasheesh · Pull Request #1654 · async-profiler/async-profiler Conversation
|
| } | ||
|
|
||
| @Test(mainClass = CpuLoad.class, agentArgs = "start,event=cpu,wall,record-cpu,file=%profile.jfr", os = Os.LINUX) | ||
| @Test(mainClass = CpuLoad.class, agentArgs = "start,event=cpu-clock,wall,record-cpu,file=%profile.jfr", os = Os.LINUX) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to choose perf_events in selectEngine if event=cpu and either of record-cpu or target-cpu options is specified?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I mean it's either perf engine is not selected & you get an error or perf event isn't supported & you also get an error
So it does make sense to go with option 2 as it's less likely to error out as if kernel symbols aren't supported it will run in user mode, should I update this PR to add that change?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I added the conditions for that 5878526
As a side effect of the change if the user selects these options with cpu on macOS it will fail due to unsupported perf events, which should be fine as it would have previously failed due not selecting perf events
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good, thanks. Shall we revert the test back to event=cpu to have this code path executed?
Please also update PR title/description to reflect new fix.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.