Skip to content

Commit d747ffd

Browse files
committed
Log stats changes.
1 parent 09b0fa2 commit d747ffd

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

SerialPrograms/Source/CommonFramework/Globals.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ namespace PokemonAutomation{
2525

2626
const bool IS_BETA_VERSION = true;
2727
const int PROGRAM_VERSION_MAJOR = 0;
28-
const int PROGRAM_VERSION_MINOR = 54;
29-
const int PROGRAM_VERSION_PATCH = 32;
28+
const int PROGRAM_VERSION_MINOR = 55;
29+
const int PROGRAM_VERSION_PATCH = 1;
3030

3131
const std::string PROGRAM_VERSION_BASE =
3232
"v" + std::to_string(PROGRAM_VERSION_MAJOR) +

SerialPrograms/Source/CommonFramework/ProgramStats/StatsTracking.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ std::string StatsTracker::to_str(PrintMode mode) const{
5353
}
5454
case ALWAYS_HIDDEN:
5555
switch (mode){
56+
case DUMP:
57+
break;
5658
case DISPLAY_ON_SCREEN:
5759
continue;
5860
case SAVE_TO_STATS_FILE:

SerialPrograms/Source/CommonFramework/ProgramStats/StatsTracking.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class StatsTracker{
2424
virtual ~StatsTracker() = default;
2525

2626
enum PrintMode{
27+
DUMP,
2728
DISPLAY_ON_SCREEN,
2829
SAVE_TO_STATS_FILE,
2930
};

SerialPrograms/Source/CommonFramework/Tools/ProgramEnvironment.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ AsyncDispatcher& ProgramEnvironment::realtime_inference_dispatcher(){
7373

7474
void ProgramEnvironment::update_stats(){
7575
m_session.report_stats_changed();
76+
if (m_current_stats){
77+
m_logger.log("Current Stats: " + m_current_stats->to_str(StatsTracker::PrintMode::DUMP));
78+
}
7679
}
7780

7881

0 commit comments

Comments
 (0)