File tree 1 file changed +7
-0
lines changed
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 {
152
152
PNAME (" pipeline/compilations_draw" ),
153
153
PNAME (" pipeline/compilations_specialization" ),
154
154
};
155
+ static_assert ((sizeof (names) / sizeof (const char *)) == MONITOR_MAX);
155
156
156
157
return names[p_monitor];
157
158
}
@@ -292,8 +293,14 @@ Performance::MonitorType Performance::get_monitor_type(Monitor p_monitor) const
292
293
MONITOR_TYPE_QUANTITY,
293
294
MONITOR_TYPE_QUANTITY,
294
295
MONITOR_TYPE_QUANTITY,
296
+ MONITOR_TYPE_QUANTITY,
297
+ MONITOR_TYPE_QUANTITY,
298
+ MONITOR_TYPE_QUANTITY,
299
+ MONITOR_TYPE_QUANTITY,
300
+ MONITOR_TYPE_QUANTITY,
295
301
296
302
};
303
+ static_assert ((sizeof (types) / sizeof (MonitorType)) == MONITOR_MAX);
297
304
298
305
return types[p_monitor];
299
306
}
You can’t perform that action at this time.
0 commit comments