Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::arch::Profiler::ProfilerData Struct Reference

#include <profiler.hpp>

Public Member Functions

 ProfilerData ()
 
 ProfilerData (const char *name)
 
void reset ()
 Resets the long term profile storage information.
 

Public Attributes

const char * name = nullptr
 Name of the profile.
 
uint32_t min = UINT32_MAX
 Min value, in microseconds, ever recorded by the profiler.
 
uint32_t max = 0
 Max value, in microseconds, ever recorded by the profiler.
 
float avg = 0
 Average value, in microseconds, averaged using a low pass filter.
 
uint32_t prevPushedTime = 0
 

Detailed Description

Stores profile information.

Constructor & Destructor Documentation

◆ ProfilerData() [1/2]

tap::arch::Profiler::ProfilerData::ProfilerData ( )
inline

◆ ProfilerData() [2/2]

tap::arch::Profiler::ProfilerData::ProfilerData ( const char *  name)
inlineexplicit

Member Function Documentation

◆ reset()

void tap::arch::Profiler::ProfilerData::reset ( )
inline

Resets the long term profile storage information.

Member Data Documentation

◆ avg

float tap::arch::Profiler::ProfilerData::avg = 0

Average value, in microseconds, averaged using a low pass filter.

◆ max

uint32_t tap::arch::Profiler::ProfilerData::max = 0

Max value, in microseconds, ever recorded by the profiler.

◆ min

uint32_t tap::arch::Profiler::ProfilerData::min = UINT32_MAX

Min value, in microseconds, ever recorded by the profiler.

◆ name

const char* tap::arch::Profiler::ProfilerData::name = nullptr

Name of the profile.

◆ prevPushedTime

uint32_t tap::arch::Profiler::ProfilerData::prevPushedTime = 0

Value used to measure a "dt" between pushing and popping the profile from the profiler.


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