Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::LoggerStats Struct Reference

Statistics for the logger. More...

#include <LoggerStats.h>

Public Member Functions

void print (std::ostream &os) const
 

Static Public Member Functions

static std::string header ()
 

Public Attributes

uint64_t timestamp = 0
 
int logNumber = 0
 Number of dropped samples because they where too large.
 
int tooLargeSamples = 0
 
int droppedSamples = 0
 Number of dropped samples due to fifo full.
 
int queuedSamples = 0
 Number of samples written to buffer.
 
int buffersFilled = 0
 Number of buffers filled.
 
int buffersWritten = 0
 Number of buffers written to disk.
 
int writesFailed = 0
 Number of fwrite() that failed.
 
int lastWriteError = 0
 Error of the last fwrite() that failed.
 
int averageWriteTime = 0
 Average time for an fwrite() of a buffer.
 
int maxWriteTime = 0
 Max time for an fwrite() of a buffer.
 

Detailed Description

Statistics for the logger.

Definition at line 34 of file LoggerStats.h.

Member Function Documentation

◆ header()

static std::string Boardcore::LoggerStats::header ( )
inlinestatic

Definition at line 52 of file LoggerStats.h.

◆ print()

void Boardcore::LoggerStats::print ( std::ostream & os) const
inline

Definition at line 59 of file LoggerStats.h.

Member Data Documentation

◆ averageWriteTime

int Boardcore::LoggerStats::averageWriteTime = 0

Average time for an fwrite() of a buffer.

Definition at line 49 of file LoggerStats.h.

◆ buffersFilled

int Boardcore::LoggerStats::buffersFilled = 0

Number of buffers filled.

Definition at line 45 of file LoggerStats.h.

◆ buffersWritten

int Boardcore::LoggerStats::buffersWritten = 0

Number of buffers written to disk.

Definition at line 46 of file LoggerStats.h.

◆ droppedSamples

int Boardcore::LoggerStats::droppedSamples = 0

Number of dropped samples due to fifo full.

Definition at line 43 of file LoggerStats.h.

◆ lastWriteError

int Boardcore::LoggerStats::lastWriteError = 0

Error of the last fwrite() that failed.

Definition at line 48 of file LoggerStats.h.

◆ logNumber

int Boardcore::LoggerStats::logNumber = 0

Number of dropped samples because they where too large.

Definition at line 38 of file LoggerStats.h.

◆ maxWriteTime

int Boardcore::LoggerStats::maxWriteTime = 0

Max time for an fwrite() of a buffer.

Definition at line 50 of file LoggerStats.h.

◆ queuedSamples

int Boardcore::LoggerStats::queuedSamples = 0

Number of samples written to buffer.

Definition at line 44 of file LoggerStats.h.

◆ timestamp

uint64_t Boardcore::LoggerStats::timestamp = 0

Definition at line 36 of file LoggerStats.h.

◆ tooLargeSamples

int Boardcore::LoggerStats::tooLargeSamples = 0

Definition at line 41 of file LoggerStats.h.

◆ writesFailed

int Boardcore::LoggerStats::writesFailed = 0

Number of fwrite() that failed.

Definition at line 47 of file LoggerStats.h.


The documentation for this struct was generated from the following file: