[all-commits] [llvm/llvm-project] e03613: [scudo] Add a Timer class to assist performance me...
ChiaHungDuan via All-commits
all-commits at lists.llvm.org
Thu Mar 23 12:41:00 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e0361396c2281a108a36d186161ace1843925431
https://github.com/llvm/llvm-project/commit/e0361396c2281a108a36d186161ace1843925431
Author: Chia-hung Duan <chiahungduan at google.com>
Date: 2023-03-23 (Thu, 23 Mar 2023)
Changed paths:
M compiler-rt/lib/scudo/standalone/CMakeLists.txt
M compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
A compiler-rt/lib/scudo/standalone/tests/timing_test.cpp
A compiler-rt/lib/scudo/standalone/timing.cpp
A compiler-rt/lib/scudo/standalone/timing.h
Log Message:
-----------
[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
More information about the All-commits
mailing list