mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 05:18:40 +00:00
updated prof markup usage sites
This commit is contained in:
@@ -382,9 +382,7 @@ lnk_make_code_view_input(TP_Context *tp, TP_Arena *tp_arena, String8List lib_dir
|
||||
ProfEnd();
|
||||
|
||||
if (lnk_get_log_status(LNK_Log_Debug) || PROFILE_TELEMETRY) {
|
||||
U64 total_debug_s_size = 0;
|
||||
U64 total_debug_t_size = 0;
|
||||
U64 total_debug_p_size = 0;
|
||||
U64 total_debug_s_size = 0, total_debug_t_size = 0, total_debug_p_size = 0;
|
||||
for (U64 obj_idx = 0; obj_idx < obj_count; ++obj_idx) {
|
||||
for (LNK_ChunkNode *chunk = debug_s_list_arr[obj_idx].first; chunk != 0; chunk = chunk->next) {
|
||||
total_debug_s_size += chunk->data->u.leaf.size;
|
||||
@@ -396,19 +394,16 @@ lnk_make_code_view_input(TP_Context *tp, TP_Arena *tp_arena, String8List lib_dir
|
||||
total_debug_p_size += chunk->data->u.leaf.size;
|
||||
}
|
||||
}
|
||||
String8 total_debug_s_size_string = str8_from_memory_size(scratch.arena, total_debug_s_size);
|
||||
String8 total_debug_t_size_string = str8_from_memory_size(scratch.arena, total_debug_t_size);
|
||||
String8 total_debug_p_size_string = str8_from_memory_size(scratch.arena, total_debug_p_size);
|
||||
|
||||
ProfNoteV("Total .debug$S Input Size: %M", total_debug_s_size);
|
||||
ProfNoteV("Total .debug$T Input Size: %M", total_debug_t_size);
|
||||
ProfNoteV("Total .debug$P Input Size: %M", total_debug_p_size);
|
||||
|
||||
if (lnk_get_log_status(LNK_Log_Debug)) {
|
||||
lnk_log(LNK_Log_Debug, "[Total .debug$S Input Size %S]", total_debug_s_size_string);
|
||||
lnk_log(LNK_Log_Debug, "[Total .debug$T Input Size %S]", total_debug_t_size_string);
|
||||
lnk_log(LNK_Log_Debug, "[Total .debug$P Input Size %S]", total_debug_p_size_string);
|
||||
lnk_log(LNK_Log_Debug, "[Total .debug$S Input Size %M]", total_debug_s_size);
|
||||
lnk_log(LNK_Log_Debug, "[Total .debug$T Input Size %M]", total_debug_t_size);
|
||||
lnk_log(LNK_Log_Debug, "[Total .debug$P Input Size %M]", total_debug_p_size);
|
||||
}
|
||||
#if PROFILE_TELEMETRY
|
||||
tmMessage(0, TMMF_ICON_NOTE, "Total .debug$S Input Size: %.*s", str8_varg(total_debug_s_size_string));
|
||||
tmMessage(0, TMMF_ICON_NOTE, "Total .debug$T Input Size: %.*s", str8_varg(total_debug_t_size_string));
|
||||
tmMessage(0, TMMF_ICON_NOTE, "Total .debug$P Input Size: %.*s", str8_varg(total_debug_p_size_string));
|
||||
#endif
|
||||
}
|
||||
|
||||
// TODO: temp hack, remove when we have null obj with .debug$T
|
||||
|
||||
Reference in New Issue
Block a user