Better metrics.

This commit is contained in:
2020-04-29 20:24:59 +02:00
parent 65dd09ca0d
commit 8e2d2225cb
4 changed files with 31 additions and 8 deletions

View File

@ -8,8 +8,12 @@ struct EffectEntry {
const char* name;
bool use_in_cycle;
std::function<Effect*()> create;
#ifdef MQTT_REPORT_METRICS
int16_t heap_change_sum;
uint16_t run_count;
#endif
};
extern const EffectEntry effects[];
extern EffectEntry effects[];
extern const uint8_t effects_size;
extern Effect* current_effect;