Uh oh!
There was an error while loading. Please reload this page.
[self-profiler] add selfprofiling to llvm - #68406
Conversation
rust-highfive
commented
Jan 20, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
2077006 to
cf9a55eComparerust-highfive
commented
Jan 21, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
michaelwoerister
commented
Jan 21, 2020
Thanks for the PR, @andjo403! I'll try to take a closer look at this some time later this week. |
wesleywiser
left a comment
There was a problem hiding this comment.
I have some minor feedback about the self-profiler changes. I don't know enough about LLVM to review those parts so I'll leave that to @michaelwoerister.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
cf9a55e to
4f4a71dComparerust-highfive
commented
Jan 21, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
4f4a71d to
de5daa8Comparerust-highfive
commented
Jan 21, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
9372209 to
84ac459Comparebors
commented
Jan 23, 2020
☔ The latest upstream changes (presumably #68474) made this pull request unmergeable. Please resolve the merge conflicts. |
michaelwoerister
left a comment
There was a problem hiding this comment.
I did a first review pass. Looks great! I want to take a closer look before merging. For now, could you move the LLVM specific code to librustc_codegen_llvm (as mentioned below).
There was a problem hiding this comment.
Is there ever more than one argument? If not you can use the EventIdBuilder::from_label_and_arg.
There was a problem hiding this comment.
for LazyCallGraph::SCC there can be up to 10 args (if more they are truncated by llvm) do not know if it is interesting to see all the functions in the SCC (and in that case make a new getName function in llvm that returns all not only 10) or if it is enough to print the first function. see around https://github.com/rust-lang/llvm-project/blob/a6f4c1bb07d58df5956d2c49be68547143f77b18/llvm/include/llvm/Analysis/LazyCallGraph.h#L447 for more info.
There was a problem hiding this comment.
Yeah we'll want to add a EventIdBuilder::from_label_and_args(label: _, args: &[_]) method at some point anyway. For now encoding things directly is fine.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
84ac459 to
968442bCompareandjo403
commented
Feb 1, 2020
have fixed the comments now |
michaelwoerister
commented
Feb 4, 2020
andjo403
commented
Feb 6, 2020
shall there be some check or documentation that llvm event recording only works when |
wesleywiser
commented
Feb 7, 2020
That's a good idea and makes sense to me. I'm not sure we should error out in that case but a warning or similar seems appropriate to me. |
michaelwoerister
commented
Feb 7, 2020
Yes, a warning makes sense to me too. |
andjo403
commented
Feb 10, 2020
how do I add a warning? was not that easy to find some other code that use it. |
bjorn3
commented
Feb 10, 2020
You could use |
bors
commented
Feb 11, 2020
☔ The latest upstream changes (presumably #69030) made this pull request unmergeable. Please resolve the merge conflicts. |
968442b to
1be179eCompareandjo403
commented
Feb 11, 2020
added a warning if the new passmanager is not used and llvm events is requested. |
bors
commented
Feb 12, 2020
☔ The latest upstream changes (presumably #69088) made this pull request unmergeable. Please resolve the merge conflicts. |
wesleywiser
commented
Feb 12, 2020
Placement of the warning seems fine to me |
1be179e to
cec0ed0Compareandjo403
commented
Feb 13, 2020
the PR that this depended on have merged to master and I have now rebase onto master. |
wesleywiser
commented
Feb 13, 2020
@bors r+ rollup=never |
bors
commented
Feb 13, 2020
📌 Commit cec0ed0 has been approved by |
bors
commented
Feb 13, 2020
[self-profiler] add selfprofiling to llvm using pass name as event id and add additional data with name of module, function …  r? @michaelwoerister or @wesleywiser
bors
commented
Feb 13, 2020
☀️ Test successful - checks-azure |
using pass name as event id and add additional data with name of module, function …
r? @michaelwoerister or @wesleywiser