1
- /* Autogenerated on January 24 , 2025 9:01:25 PM from eez-framework commit 3e77217de3bfe5f3bee72e7c438adff9f71b8401 */
1
+ /* Autogenerated on January 26 , 2025 4:44:23 PM from eez-framework commit 0006a5c3421e344c1cceb13528634cd9dd62adac */
2
2
/*
3
3
* eez-framework
4
4
*
@@ -6826,7 +6826,11 @@ namespace flow {
6826
6826
#if defined(__EMSCRIPTEN__)
6827
6827
uint32_t g_wasmModuleId = 0;
6828
6828
#endif
6829
- static const uint32_t FLOW_TICK_MAX_DURATION_MS = 5;
6829
+ #if !defined(EEZ_FLOW_TICK_MAX_DURATION_MS)
6830
+ #define EEZ_FLOW_TICK_MAX_DURATION_MS 5
6831
+ #endif
6832
+ static const uint32_t FLOW_TICK_MAX_DURATION_MS = EEZ_FLOW_TICK_MAX_DURATION_MS;
6833
+ static unsigned g_tick_max_duration_count = 0;
6830
6834
int g_selectedLanguage = 0;
6831
6835
FlowState *g_firstFlowState;
6832
6836
FlowState *g_lastFlowState;
@@ -6856,6 +6860,7 @@ void tick() {
6856
6860
return;
6857
6861
}
6858
6862
uint32_t startTickCount = millis();
6863
+ visitWatchList();
6859
6864
auto queueSizeAtTickStart = getQueueSize();
6860
6865
for (size_t i = 0; i < queueSizeAtTickStart || g_numNonContinuousTaskInQueue > 0; i++) {
6861
6866
FlowState *flowState;
@@ -6891,11 +6896,11 @@ void tick() {
6891
6896
}
6892
6897
if ((i + 1) % 5 == 0) {
6893
6898
if (millis() - startTickCount >= FLOW_TICK_MAX_DURATION_MS) {
6899
+ g_tick_max_duration_count++;
6894
6900
break;
6895
6901
}
6896
6902
}
6897
6903
}
6898
- visitWatchList();
6899
6904
finishToDebuggerMessageHook();
6900
6905
}
6901
6906
void stop() {
@@ -6915,6 +6920,9 @@ void doStop() {
6915
6920
bool isFlowStopped() {
6916
6921
return g_isStopped;
6917
6922
}
6923
+ unsigned getTickMaxDurationCounter() {
6924
+ return g_tick_max_duration_count;
6925
+ }
6918
6926
#if EEZ_OPTION_GUI
6919
6927
FlowState *getPageFlowState(Assets *assets, int16_t pageIndex, const WidgetCursor &widgetCursor) {
6920
6928
if (!assets->flowDefinition) {
0 commit comments