aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/TextStubV5.cpp
diff options
context:
space:
mode:
authorChia-hung Duan <chiahungduan@google.com>2023-03-23 19:38:48 +0000
committerChia-hung Duan <chiahungduan@google.com>2023-03-23 19:40:15 +0000
commite0361396c2281a108a36d186161ace1843925431 (patch)
tree4b4148d7f487da3499814f206cc250dd1c5f23f4 /llvm/lib/TextAPI/TextStubV5.cpp
parent30e89166d765cbe676fdc85bc653df9a3c09ce48 (diff)
downloadllvm-e0361396c2281a108a36d186161ace1843925431.zip
llvm-e0361396c2281a108a36d186161ace1843925431.tar.gz
llvm-e0361396c2281a108a36d186161ace1843925431.tar.bz2
[scudo] Add a Timer class to assist performance measurement
Add Timer and TimingManager which provide convenient way to meause the execution time of code snippets. The output looks like, ``` -- Average Operation Time -- -- Name (# of Calls) -- 1747.2(ns) popBatch (59) 92.3(ns) popBatchImpl (73) 101.6(ns) EmptyBatchProcess (5) 2587.0(ns) pushBlocksImpl (13) ``` Note that `EmptyBatchProcess` is nested under the timer `popBatchImpl`. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D143626
Diffstat (limited to 'llvm/lib/TextAPI/TextStubV5.cpp')
0 files changed, 0 insertions, 0 deletions