Tooling for work with Profile-Guided Optimization (PGO) profiles #7901
Replies: 6 comments 4 replies
-
We will soon have LCOV dumps that will show which methods were executed (based on PGO data).
For this, it would be useful to understand what the use-case specifically is. |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarifying and providing more input!
The use-cases make sense. It would be easy to implement a utility that diffs two profiles like this, but we would need to precisely define what the difference metric is (i.e. exactly how to calculate X%). |
Beta Was this translation helpful? Give feedback.
-
Another question goes about merging multiple PGO profiles. Is it possible to do it somehow? If yes, does it support weighted merge? The complete use case is described in the same issue for the Go compiler: golang/go#64487 |
Beta Was this translation helpful? Give feedback.
-
There is an option for the cc @jovanstevanovic Can you provide more input? |
Beta Was this translation helpful? Give feedback.
-
@zamazan4ik Yes, you can merge profiles on Native Image as well with
|
Beta Was this translation helpful? Give feedback.
-
@zamazan4ik About weighted merge, we do not have that implemented so far, but we plan to do it in the near future. |
Beta Was this translation helpful? Give feedback.
-
Hi!
For PGO profiles it's important to understand some insights about the profiles: covered functions, counters for each function, compare PGO profiles between each other, and calculate PGO profile overlap. In the GraalVM documentation, I cannot find information about that. Are there any PGO profile-related tools for GraalVM like it's done in other PGO ecosystems? I mean
llvm-profdata
for LLVM andgcov-tool
for GCC.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions