Skip to content

Commit

Permalink
[Main] Fix missing performance data
Browse files Browse the repository at this point in the history
Also future-proof entries to ensure size.
  • Loading branch information
AThousandShips committed Jan 7, 2025
1 parent aa65940 commit a6c7057
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main/performance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ String Performance::get_monitor_name(Monitor p_monitor) const {
PNAME("pipeline/compilations_draw"),
PNAME("pipeline/compilations_specialization"),
};
static_assert((sizeof(names) / sizeof(const char *)) == MONITOR_MAX);

return names[p_monitor];
}
Expand Down Expand Up @@ -292,8 +293,14 @@ Performance::MonitorType Performance::get_monitor_type(Monitor p_monitor) const
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,

};
static_assert((sizeof(types) / sizeof(MonitorType)) == MONITOR_MAX);

return types[p_monitor];
}
Expand Down

0 comments on commit a6c7057

Please sign in to comment.