Add a time_profiler for reading old history items

This commit is contained in:
ridiculousfish 2018-07-12 00:06:02 -07:00
parent c5ec7daab4
commit 2ce0240fc8

View File

@ -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.