From 2ce0240fc8bbcc8a0129980fee67109616a3d9af Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 12 Jul 2018 00:06:02 -0700 Subject: [PATCH] Add a time_profiler for reading old history items --- src/history.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/history.cpp b/src/history.cpp index d2a58f676..cf9f53cd7 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -1015,6 +1015,7 @@ bool history_t::load_old_if_needed() { if (loaded_old) return true; loaded_old = true; + time_profiler_t profiler("load_old"); //!OCLINT(side-effect) bool ok = false; if (map_file(name, &mmap_start, &mmap_length, &mmap_file_id)) { // Here we've mapped the file.