Add a category for screen repainting

This commit is contained in:
ridiculousfish 2020-03-02 18:22:18 -08:00
parent b0c2eda3b4
commit 8355285736
2 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,8 @@ class category_list_t {
category_t reader{L"reader", L"The interactive reader/input system"};
category_t complete{L"complete", L"The completion system"};
category_t path{L"path", L"Searching/using paths"};
category_t screen{L"screen", L"Screen repaints"};
};
/// The class responsible for logging.

View File

@ -1000,6 +1000,8 @@ void s_write(screen_t *s, const wcstring &left_prompt, const wcstring &right_pro
const wcstring &commandline, size_t explicit_len,
const std::vector<highlight_spec_t> &colors, const std::vector<int> &indent,
size_t cursor_pos, const page_rendering_t &pager, bool cursor_is_within_pager) {
static relaxed_atomic_t<uint32_t> s_repaints{0};
FLOGF(screen, "Repaint %u", (unsigned)++s_repaints);
screen_data_t::cursor_t cursor_arr;
// Turn the command line into the explicit portion and the autosuggestion.