mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
[Timings] Add extra debug.
This commit is contained in:
parent
40c1476855
commit
50be2b446a
1 changed files with 6 additions and 0 deletions
|
@ -1030,10 +1030,12 @@ static void rofi_view_refilter ( RofiViewState *state )
|
||||||
_rofi_view_reload_row ( state );
|
_rofi_view_reload_row ( state );
|
||||||
state->reload = FALSE;
|
state->reload = FALSE;
|
||||||
}
|
}
|
||||||
|
TICK_N ("Filter reload rows");
|
||||||
if ( state->tokens ) {
|
if ( state->tokens ) {
|
||||||
helper_tokenize_free ( state->tokens );
|
helper_tokenize_free ( state->tokens );
|
||||||
state->tokens = NULL;
|
state->tokens = NULL;
|
||||||
}
|
}
|
||||||
|
TICK_N ("Filter tokenize");
|
||||||
if ( state->text && strlen ( state->text->text ) > 0 ) {
|
if ( state->text && strlen ( state->text->text ) > 0 ) {
|
||||||
unsigned int j = 0;
|
unsigned int j = 0;
|
||||||
gchar *pattern = mode_preprocess_input ( state->sw, state->text->text );
|
gchar *pattern = mode_preprocess_input ( state->sw, state->text->text );
|
||||||
|
@ -1100,6 +1102,7 @@ static void rofi_view_refilter ( RofiViewState *state )
|
||||||
}
|
}
|
||||||
state->filtered_lines = state->num_lines;
|
state->filtered_lines = state->num_lines;
|
||||||
}
|
}
|
||||||
|
TICK_N ("Filter matching done");
|
||||||
listview_set_num_elements ( state->list_view, state->filtered_lines );
|
listview_set_num_elements ( state->list_view, state->filtered_lines );
|
||||||
|
|
||||||
if ( state->tb_filtered_rows ) {
|
if ( state->tb_filtered_rows ) {
|
||||||
|
@ -1112,6 +1115,7 @@ static void rofi_view_refilter ( RofiViewState *state )
|
||||||
textbox_text( state->tb_total_rows, r );
|
textbox_text( state->tb_total_rows, r );
|
||||||
g_free(r);
|
g_free(r);
|
||||||
}
|
}
|
||||||
|
TICK_N ("Update filter lines");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1120,6 +1124,7 @@ static void rofi_view_refilter ( RofiViewState *state )
|
||||||
state->retv = MENU_OK;
|
state->retv = MENU_OK;
|
||||||
state->quit = TRUE;
|
state->quit = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Size the window.
|
// Size the window.
|
||||||
int height = rofi_view_calculate_height ( state );
|
int height = rofi_view_calculate_height ( state );
|
||||||
if ( height != state->height ) {
|
if ( height != state->height ) {
|
||||||
|
@ -1128,6 +1133,7 @@ static void rofi_view_refilter ( RofiViewState *state )
|
||||||
rofi_view_window_update_size ( state );
|
rofi_view_window_update_size ( state );
|
||||||
g_debug ( "Resize based on re-filter" );
|
g_debug ( "Resize based on re-filter" );
|
||||||
}
|
}
|
||||||
|
TICK_N ("Filter resize window based on window ");
|
||||||
state->refilter = FALSE;
|
state->refilter = FALSE;
|
||||||
TICK_N ( "Filter done" );
|
TICK_N ( "Filter done" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue