Change the behavior of the llvm-profdata show --debug-info= command to dump a YAML file when using debug info correlation since it provides more information in a parseable format.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Could we make this selectable? We already have the --json option in llvm-profdata for sample profile data. Could we replace it with a --output-format=[json|yaml] option and extend it to support other output types, including debug info correlation. You could then use llvm-profdata show --debug-info=%t --output-format=yaml.
Comment Actions
I like the idea of --output-format=yaml since it easily allows us to preserve the original behavior. I'll add this in another diff and update this.
Comment Actions
Add the "Probes" key to Yaml output so that we can add more keys in the future. Also add D135127 as a parent diff to use the --output-format=yaml option.