File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments