summaryrefslogtreecommitdiff
path: root/memory_replay/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'memory_replay/main.cpp')
-rw-r--r--memory_replay/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/memory_replay/main.cpp b/memory_replay/main.cpp
index b4dbef24..42b52983 100644
--- a/memory_replay/main.cpp
+++ b/memory_replay/main.cpp
@@ -147,6 +147,10 @@ void ProcessDump(int fd, size_t max_allocs, size_t max_threads) {
// is leaked and everything is accounted for during a run.
threads.FinishAll();
pointers.FreeAll();
+
+ // Print out the total time making all allocation calls.
+ printf("Total Allocation/Free Time: %" PRIu64 "ns %0.2fs\n",
+ threads.total_time_nsecs(), threads.total_time_nsecs()/1000000000.0);
}
constexpr size_t DEFAULT_MAX_THREADS = 512;