-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
99 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
#pragma once | ||
|
||
#include "Types.hpp" | ||
#include "GlobalParams.hpp" | ||
|
||
#include <cstring> | ||
#include <map> | ||
#include <string> | ||
|
||
namespace Engine | ||
{ | ||
class Monitoring | ||
{ | ||
private: | ||
inline static uint32 _index = 0; | ||
inline static float _max = FLT_MIN; | ||
inline static float _min = FLT_MAX; | ||
|
||
public: | ||
inline static LogFloatXY buffer[LiquiefiedParams::LIQUID_NUM_CELLS] = {}; | ||
inline static std::map<std::string, LogFloatXY_t> loggedValues = std::map<std::string, LogFloatXY_t>(); | ||
|
||
Monitoring() = delete; | ||
|
||
static void MinMaxAvgAt(const char* name, float value, uint32 x, uint32 y); | ||
static void LogToBuffer(const char* name, float val, uint32 x, uint32 y); | ||
static void Log(const char* name, float val, uint32 x, uint32 y); | ||
static void Reset(); | ||
|
||
inline static std::map<const char*, MinMaxAvg_t> values = std::map<const char*, MinMaxAvg_t>(); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters