@@ -1327,7 +1327,7 @@ rd_watch_view_build(RD_WatchViewState *ewv, RD_WatchViewFlags flags, String8 roo
13271327 Vec2S64 cursor_tbl = {0 };
13281328 Vec2S64 mark_tbl = {0 };
13291329 Rng2S64 selection_tbl = {0 };
1330- if (!is_top_level_hook ) UI_Focus (UI_FocusKind_On )
1330+ if (!is_top_level_hook ) ProfScope ( "consume events & perform navigations/edits - calculate state" ) UI_Focus (UI_FocusKind_On )
13311331 {
13321332 B32 state_dirty = 1 ;
13331333 B32 snap_to_cursor = 0 ;
@@ -1338,7 +1338,7 @@ rd_watch_view_build(RD_WatchViewState *ewv, RD_WatchViewFlags flags, String8 roo
13381338 //////////////////////////
13391339 //- rjf: state -> viz blocks
13401340 //
1341- if (state_dirty )
1341+ if (state_dirty ) ProfScope ( "state -> viz blocks" )
13421342 {
13431343 MemoryZeroStruct (& block_tree );
13441344 MemoryZeroStruct (& block_ranges );
@@ -1350,6 +1350,7 @@ rd_watch_view_build(RD_WatchViewState *ewv, RD_WatchViewFlags flags, String8 roo
13501350 //////////////////////////
13511351 //- rjf: block ranges -> ui row blocks
13521352 //
1353+ ProfScope ("block ranges -> ui row blocks" )
13531354 {
13541355 UI_ScrollListRowBlockChunkList row_block_chunks = {0 };
13551356 for (EV_BlockRangeNode * n = block_ranges .first ; n != 0 ; n = n -> next )
@@ -2140,7 +2141,7 @@ rd_watch_view_build(RD_WatchViewState *ewv, RD_WatchViewFlags flags, String8 roo
21402141 //- rjf: build ui
21412142 //
21422143 B32 pressed = 0 ;
2143- if (!is_top_level_hook )
2144+ if (!is_top_level_hook ) ProfScope ( "build ui" )
21442145 {
21452146 F32 * * col_pcts = push_array (scratch .arena , F32 * , ewv -> column_count );
21462147 {
@@ -5375,7 +5376,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(targets)
53755376 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.75f , .dequote_string = 1 , .is_non_code = 0 );
53765377 }
53775378 rd_watch_view_build (wv , RD_WatchViewFlag_NoHeader |RD_WatchViewFlag_PrettyNameMembers |RD_WatchViewFlag_PrettyEntityRows |RD_WatchViewFlag_DisableCacheLines ,
5378- str8_lit ("targets" ), str8_lit ("only: label exe args working_directory entry_point stdout_path stderr_path stdin_path str" ), 1 , 10 , rect );
5379+ str8_lit ("collection: targets" ), str8_lit ("only: label exe args working_directory entry_point stdout_path stderr_path stdin_path str" ), 1 , 10 , rect );
53795380 ProfEnd ();
53805381}
53815382
@@ -5393,7 +5394,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(file_path_map)
53935394 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.75f , .dequote_string = 1 , .is_non_code = 0 );
53945395 }
53955396 rd_watch_view_build (wv , RD_WatchViewFlag_NoHeader |RD_WatchViewFlag_PrettyNameMembers |RD_WatchViewFlag_PrettyEntityRows |RD_WatchViewFlag_DisableCacheLines ,
5396- str8_lit ("file_path_maps" ), str8_lit ("only: source_path destination_path str" ), 1 , 10 , rect );
5397+ str8_lit ("collection: file_path_maps" ), str8_lit ("only: source_path destination_path str" ), 1 , 10 , rect );
53975398 ProfEnd ();
53985399}
53995400
@@ -5411,7 +5412,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(auto_view_rules)
54115412 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.75f , .dequote_string = 1 , .is_non_code = 0 );
54125413 }
54135414 rd_watch_view_build (wv , RD_WatchViewFlag_NoHeader |RD_WatchViewFlag_PrettyNameMembers |RD_WatchViewFlag_PrettyEntityRows |RD_WatchViewFlag_DisableCacheLines ,
5414- str8_lit ("auto_view_rules" ), str8_lit ("only: type view_rule str" ), 1 , 10 , rect );
5415+ str8_lit ("collection: auto_view_rules" ), str8_lit ("only: type view_rule str" ), 1 , 10 , rect );
54155416 ProfEnd ();
54165417}
54175418
@@ -5429,7 +5430,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(breakpoints)
54295430 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.75f , .dequote_string = 1 );
54305431 }
54315432 rd_watch_view_build (wv , RD_WatchViewFlag_NoHeader |RD_WatchViewFlag_PrettyNameMembers |RD_WatchViewFlag_PrettyEntityRows |RD_WatchViewFlag_DisableCacheLines ,
5432- str8_lit ("breakpoints" ), str8_lit ("only: label condition str hit_count source_location address_location function_location" ), 0 , 10 , rect );
5433+ str8_lit ("collection: breakpoints" ), str8_lit ("only: label condition str hit_count source_location address_location function_location" ), 0 , 10 , rect );
54335434 ProfEnd ();
54345435}
54355436
@@ -5447,7 +5448,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(watch_pins)
54475448 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.75f , .dequote_string = 1 );
54485449 }
54495450 rd_watch_view_build (wv , RD_WatchViewFlag_NoHeader |RD_WatchViewFlag_PrettyNameMembers |RD_WatchViewFlag_PrettyEntityRows |RD_WatchViewFlag_DisableCacheLines ,
5450- str8_lit ("watch_pins" ), str8_lit ("only: label source_location address_location str" ), 0 , 10 , rect );
5451+ str8_lit ("collection: watch_pins" ), str8_lit ("only: label source_location address_location str" ), 0 , 10 , rect );
54515452 ProfEnd ();
54525453}
54535454
@@ -5465,7 +5466,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(scheduler)
54655466 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.75f , .dequote_string = 1 );
54665467 }
54675468 rd_watch_view_build (wv , RD_WatchViewFlag_NoHeader |RD_WatchViewFlag_PrettyNameMembers |RD_WatchViewFlag_PrettyEntityRows |RD_WatchViewFlag_DisableCacheLines ,
5468- str8_lit ("machines" ), str8_lit ("only: label str id callstack v count vaddr inline_depth" ), 0 , 10 , rect );
5469+ str8_lit ("collection: machines" ), str8_lit ("only: label str id callstack v count vaddr inline_depth" ), 0 , 10 , rect );
54695470 ProfEnd ();
54705471}
54715472
@@ -5502,7 +5503,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(modules)
55025503 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.75f , .dequote_string = 1 );
55035504 }
55045505 rd_watch_view_build (wv , RD_WatchViewFlag_NoHeader |RD_WatchViewFlag_PrettyNameMembers |RD_WatchViewFlag_PrettyEntityRows |RD_WatchViewFlag_DisableCacheLines ,
5505- str8_lit ("modules" ), str8_lit ("only: exe dbg str vaddr_range min max" ), 0 , 16 , rect );
5506+ str8_lit ("collection: modules" ), str8_lit ("only: exe dbg str vaddr_range min max" ), 0 , 16 , rect );
55065507 ProfEnd ();
55075508}
55085509
@@ -5521,7 +5522,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(watch)
55215522 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Type , 0.15f );
55225523 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_ViewRule , 0.30f );
55235524 }
5524- rd_watch_view_build (wv , 0 , str8_lit ("watches" ), str8_lit ("" ), 1 , 10 , rect );
5525+ rd_watch_view_build (wv , 0 , str8_lit ("collection: watches" ), str8_lit ("" ), 1 , 10 , rect );
55255526 ProfEnd ();
55265527}
55275528
@@ -5540,7 +5541,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(locals)
55405541 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Type , 0.15f );
55415542 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_ViewRule , 0.30f );
55425543 }
5543- rd_watch_view_build (wv , 0 , str8_lit ("locals" ), str8_lit ("" ), 0 , 10 , rect );
5544+ rd_watch_view_build (wv , 0 , str8_lit ("collection: locals" ), str8_lit ("" ), 0 , 10 , rect );
55445545 ProfEnd ();
55455546}
55465547
@@ -5559,7 +5560,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(registers)
55595560 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Type , 0.15f );
55605561 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_ViewRule , 0.30f );
55615562 }
5562- rd_watch_view_build (wv , 0 , str8_lit ("registers" ), str8_lit ("hex" ), 0 , 16 , rect );
5563+ rd_watch_view_build (wv , 0 , str8_lit ("collection: registers" ), str8_lit ("hex" ), 0 , 16 , rect );
55635564 ProfEnd ();
55645565}
55655566
@@ -5578,7 +5579,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(globals)
55785579 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Type , 0.15f );
55795580 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_ViewRule , 0.30f );
55805581 }
5581- rd_watch_view_build (wv , 0 , str8_lit ("globals" ), str8_lit ("" ), 0 , 10 , rect );
5582+ rd_watch_view_build (wv , 0 , str8_lit ("collection: globals" ), str8_lit ("" ), 0 , 10 , rect );
55825583 ProfEnd ();
55835584}
55845585
@@ -5597,7 +5598,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(thread_locals)
55975598 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Type , 0.15f );
55985599 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_ViewRule , 0.30f );
55995600 }
5600- rd_watch_view_build (wv , 0 , str8_lit ("thread_locals" ), str8_lit ("" ), 0 , 10 , rect );
5601+ rd_watch_view_build (wv , 0 , str8_lit ("collection: thread_locals" ), str8_lit ("" ), 0 , 10 , rect );
56015602 ProfEnd ();
56025603}
56035604
@@ -5616,7 +5617,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(types)
56165617 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Type , 0.15f );
56175618 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_ViewRule , 0.30f );
56185619 }
5619- rd_watch_view_build (wv , 0 , str8_lit ("types" ), str8_lit ("" ), 0 , 10 , rect );
5620+ rd_watch_view_build (wv , 0 , str8_lit ("collection: types" ), str8_lit ("" ), 0 , 10 , rect );
56205621 ProfEnd ();
56215622}
56225623
@@ -5634,7 +5635,7 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(procedures)
56345635 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_Value , 0.6f );
56355636 rd_watch_view_column_alloc (wv , RD_WatchViewColumnKind_ViewRule , 0.2f );
56365637 }
5637- rd_watch_view_build (wv , 0 , str8_lit ("procedures" ), str8_lit ("" ), 0 , 10 , rect );
5638+ rd_watch_view_build (wv , 0 , str8_lit ("collection: procedures" ), str8_lit ("" ), 0 , 10 , rect );
56385639 ProfEnd ();
56395640}
56405641
0 commit comments