mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 15:16:40 +08:00
Add a time_profiler for reading old history items
This commit is contained in:
parent
c5ec7daab4
commit
2ce0240fc8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user