diff --git a/src/flog.h b/src/flog.h index 0ff1ac4a3..de334a388 100644 --- a/src/flog.h +++ b/src/flog.h @@ -74,6 +74,8 @@ class category_list_t { category_t char_encoding{L"char-encoding", L"Character encoding issues"}; category_t history{L"history", L"Command history events"}; + + category_t profile_history{L"profile-history", L"History performance measurements"}; }; /// The class responsible for logging. diff --git a/src/history.cpp b/src/history.cpp index 77f1733e4..9463c9790 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -101,7 +101,7 @@ class time_profiler_t { ~time_profiler_t() { double end = timef(); - debug(5, "%s: %.0f ms", what, (end - start) * 1000); + FLOGF(profile_history, "%s: %.0f ms", what, (end - start) * 1000); } };