Skip to content

Commit

Permalink
Merge pull request #101242 from AThousandShips/fix_perf
Browse files Browse the repository at this point in the history
[Main] Fix missing performance data
  • Loading branch information
akien-mga committed Jan 7, 2025
2 parents cecc83d + a6c7057 commit d2ada64
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 d2ada64

Please sign in to comment.