[all-commits] [llvm/llvm-project] 9f9464: [trace][intel pt] Measure the time it takes to dec...
walter erquinigo via All-commits
all-commits at lists.llvm.org
Wed Jul 13 11:08:30 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f9464e02adaeb0a56211db35e8d22929ef3191f
https://github.com/llvm/llvm-project/commit/9f9464e02adaeb0a56211db35e8d22929ef3191f
Author: Peicong Wu <wupeicong at fb.com>
Date: 2022-07-13 (Wed, 13 Jul 2022)
Changed paths:
M lldb/source/Plugins/Trace/intel-pt/TaskTimer.h
M lldb/source/Plugins/Trace/intel-pt/ThreadDecoder.cpp
M lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
M lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
M lldb/source/Plugins/Trace/intel-pt/TraceIntelPTMultiCpuDecoder.cpp
Log Message:
-----------
[trace][intel pt] Measure the time it takes to decode a thread in per-cpu mode
This metric was missing. We were only measuring in per-thread mode, and
this completes the work.
For a sample trace I have, the `dump info` command shows
```
Timing for this thread:
Decoding instructions: 0.12s
```
I also improved a bit the TaskTime function so that callers don't need to
specify the template argument
Differential Revision: https://reviews.llvm.org/D129249
More information about the All-commits
mailing list