diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-13 21:03:56 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-13 21:03:56 +0000 |
commit | 03185797d73e2c28ae37195ea24a4f0a7e290914 (patch) | |
tree | 7ff44a84cd618d5087a5970a39bb3bacc77a81b1 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 4dd569c7cc3db627ecf14a6f91db3c21b537d20a (diff) | |
download | llvm-03185797d73e2c28ae37195ea24a4f0a7e290914.zip llvm-03185797d73e2c28ae37195ea24a4f0a7e290914.tar.gz llvm-03185797d73e2c28ae37195ea24a4f0a7e290914.tar.bz2 |
Reland: [Timers] Use the pass argument name for JSON keys in time-passes
When using clang --save-stats -mllvm -time-passes, both timers and stats
end up in the same json file.
We could end up with things like:
{
"asm-printer.EmittedInsts": 1,
"time.pass.Virtual Register Map.wall": 2.9015541076660156e-04,
"time.pass.Virtual Register Map.user": 2.0500000000000379e-04,
"time.pass.Virtual Register Map.sys": 8.5000000000001741e-05,
}
This patch makes use of the pass argument name (if available) in the
JSON key to end up with things like:
{
"asm-printer.EmittedInsts": 1,
"time.pass.virtregmap.wall": 2.9015541076660156e-04,
"time.pass.virtregmap.user": 2.0500000000000379e-04,
"time.pass.virtregmap.sys": 8.5000000000001741e-05,
}
This also helps avoiding to write another JSON printer to handle all the
cases that we could have in our pass names.
Fixed test instead of adding a new one originally from r334649.
Differential Revision: https://reviews.llvm.org/D48109
llvm-svn: 334657
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions