Agora  1.2.0
Agora project
TimeFrameCounters Class Reference

#include <time_frame_counters.h>

Collaboration diagram for TimeFrameCounters:

Public Member Functions

 TimeFrameCounters ()=default
 
void Init (size_t max_symbol_count, size_t max_task_count=0)
 
void Reset (size_t frame_id)
 
bool CompleteSymbol (size_t frame_id)
 
bool CompleteTask (size_t frame_id, size_t symbol_id)
 
bool CompleteTask (size_t frame_id)
 
double GetTaskTotalTimeMs (size_t frame_id, size_t symbol_id) const
 
double GetTaskTotalTimeMs (size_t frame_id) const
 
double GetTaskStartTimeUs (size_t frame_id, size_t symbol_id) const
 
double GetTaskStartTimeUs (size_t frame_id) const
 
double GetTaskEndTimeUs (size_t frame_id, size_t symbol_id) const
 
double GetTaskEndTimeUs (size_t frame_id) const
 

Private Attributes

FrameCounters counter_
 
std::array< std::array< std::pair< double, double >, kMaxSymbols >, kFrameWndtask_times_
 
std::array< std::pair< double, double >, kMaxSymbolssymbol_times_
 

Constructor & Destructor Documentation

◆ TimeFrameCounters()

TimeFrameCounters::TimeFrameCounters ( )
default

Member Function Documentation

◆ CompleteSymbol()

bool TimeFrameCounters::CompleteSymbol ( size_t  frame_id)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CompleteTask() [1/2]

bool TimeFrameCounters::CompleteTask ( size_t  frame_id)
inline
Here is the call graph for this function:

◆ CompleteTask() [2/2]

bool TimeFrameCounters::CompleteTask ( size_t  frame_id,
size_t  symbol_id 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTaskEndTimeUs() [1/2]

double TimeFrameCounters::GetTaskEndTimeUs ( size_t  frame_id) const
inline

◆ GetTaskEndTimeUs() [2/2]

double TimeFrameCounters::GetTaskEndTimeUs ( size_t  frame_id,
size_t  symbol_id 
) const
inline
Here is the caller graph for this function:

◆ GetTaskStartTimeUs() [1/2]

double TimeFrameCounters::GetTaskStartTimeUs ( size_t  frame_id) const
inline

◆ GetTaskStartTimeUs() [2/2]

double TimeFrameCounters::GetTaskStartTimeUs ( size_t  frame_id,
size_t  symbol_id 
) const
inline

◆ GetTaskTotalTimeMs() [1/2]

double TimeFrameCounters::GetTaskTotalTimeMs ( size_t  frame_id) const
inline

◆ GetTaskTotalTimeMs() [2/2]

double TimeFrameCounters::GetTaskTotalTimeMs ( size_t  frame_id,
size_t  symbol_id 
) const
inline
Here is the caller graph for this function:

◆ Init()

void TimeFrameCounters::Init ( size_t  max_symbol_count,
size_t  max_task_count = 0 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

void TimeFrameCounters::Reset ( size_t  frame_id)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ counter_

FrameCounters TimeFrameCounters::counter_
private

◆ symbol_times_

std::array<std::pair<double, double>, kMaxSymbols> TimeFrameCounters::symbol_times_
private

◆ task_times_

std::array<std::array<std::pair<double, double>, kMaxSymbols>, kFrameWnd> TimeFrameCounters::task_times_
private

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