mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
Add a time_profiler for reading old history items
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user