Skip to content

Commit d2ada64

Browse files
committed
Merge pull request #101242 from AThousandShips/fix_perf
[Main] Fix missing performance data
2 parents cecc83d + a6c7057 commit d2ada64

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main/performance.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ String Performance::get_monitor_name(Monitor p_monitor) const {
152152
PNAME("pipeline/compilations_draw"),
153153
PNAME("pipeline/compilations_specialization"),
154154
};
155+
static_assert((sizeof(names) / sizeof(const char *)) == MONITOR_MAX);
155156

156157
return names[p_monitor];
157158
}
@@ -292,8 +293,14 @@ Performance::MonitorType Performance::get_monitor_type(Monitor p_monitor) const
292293
MONITOR_TYPE_QUANTITY,
293294
MONITOR_TYPE_QUANTITY,
294295
MONITOR_TYPE_QUANTITY,
296+
MONITOR_TYPE_QUANTITY,
297+
MONITOR_TYPE_QUANTITY,
298+
MONITOR_TYPE_QUANTITY,
299+
MONITOR_TYPE_QUANTITY,
300+
MONITOR_TYPE_QUANTITY,
295301

296302
};
303+
static_assert((sizeof(types) / sizeof(MonitorType)) == MONITOR_MAX);
297304

298305
return types[p_monitor];
299306
}

0 commit comments

Comments
 (0)