Migrate history profiling to flog

This commit is contained in:
ridiculousfish 2019-08-18 11:14:45 -07:00
parent 0da87d3e5f
commit 9b2b7f787e
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -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);
}
};