Data gather and report on ESP32 system stats - mostly memory heap.
Definition: lvppUtils.h:91
void printStaticStats()
Prints the non-record-based statistics only.
Definition: lvppUtils.cpp:99
void takeSampleAndPrintResults(const char *sampName)
Take a sample (via takeSample()) and then print (in non-tabular form) the results.
Definition: lvppUtils.cpp:77
std::string getStaticStats()
Get the non-record-based statistics only and return them in a std::string. See printStaticStats() for...
Definition: lvppUtils.cpp:104
void takeSample(const char *sampName)
Take a data sample immediately and memorialize it with the name passed in the argument.
Definition: lvppUtils.cpp:73
uint32_t sketchFreeSpace
Number of bytes remaining in the sketch/program area.
Definition: lvppUtils.h:178
uint32_t cpuFreqMHz
The processor frequency at the time of instantiation.
Definition: lvppUtils.h:177
std::vector< espRec_t > samples
std::vector which stores each sample in the order taken.
Definition: lvppUtils.h:180
std::string takeSampleAndGetResults(const char *sampName)
Take a sample and return the results as a std::string.
Definition: lvppUtils.cpp:82
uint32_t sketchSize
Number of bytes taken by the current sketch/program.
Definition: lvppUtils.h:179
void printFullReport()
This is the main event for results along with getFullReport(). This prints the static stats as well a...
Definition: lvppUtils.cpp:116
std::string getFullReport()
Same functionality as printFullReport() but returns the result in std::string instead of printing the...
Definition: lvppUtils.cpp:121
void recordSample(const char *sampName)
Internal worker-bee which actually takes the sample and places it in a record.
Definition: lvppUtils.cpp:150
espSystats()
Definition: lvppUtils.cpp:63
constexpr uint16_t MAX_SAMPLENAME
Definition: lvppUtils.h:44
espSystats ESPSystats
Globally available instance of the object to follow most Arduino-based library patterns.
Definition: lvppUtils.cpp:39
struct espRec espRec_t
Struct which holds the data taken in each sample for espSystats class. A typedef of espRec_t is creat...
Struct which holds the data taken in each sample for espSystats class. A typedef of espRec_t is creat...
Definition: lvppUtils.h:51
uint32_t heapLowWaterMark
Definition: lvppUtils.h:55
char sampleName[MAX_SAMPLENAME+1]
Definition: lvppUtils.h:56
uint32_t heapSize
Definition: lvppUtils.h:53
uint32_t heapLargestBlock
Definition: lvppUtils.h:54
uint32_t heapFree
Definition: lvppUtils.h:52