diff options
author | Chia-hung Duan <chiahungduan@google.com> | 2023-03-23 19:38:48 +0000 |
---|---|---|
committer | Chia-hung Duan <chiahungduan@google.com> | 2023-03-23 19:40:15 +0000 |
commit | e0361396c2281a108a36d186161ace1843925431 (patch) | |
tree | 4b4148d7f487da3499814f206cc250dd1c5f23f4 /llvm/lib/TextAPI/TextStubV5.cpp | |
parent | 30e89166d765cbe676fdc85bc653df9a3c09ce48 (diff) | |
download | llvm-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