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

Statistics over a single task. More...

#include <TaskSchedulerData.h>

Collaboration diagram for Boardcore::TaskStatsResult:

Public Member Functions

void print (std::ostream &os) const
 

Static Public Member Functions

static std::string header ()
 

Public Attributes

size_t id
 
std::chrono::nanoseconds period
 
StatsResult activationStats
 
StatsResult periodStats
 
StatsResult workloadStats
 
uint32_t missedEvents
 
uint32_t failedEvents
 

Detailed Description

Statistics over a single task.

3 statistics are provided:

  • Activation statistics: errors between the task intended execution tick and the actual execution tick when it started;
  • Period statistics: actual period between task executions;
  • Workload statistics: time (in ticks) the task took to execute;
  • Mixed events: cumulative number of missed executions;
  • Failed events: Number of events ended with exceptions.

Definition at line 45 of file TaskSchedulerData.h.

Member Function Documentation

◆ header()

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

Definition at line 55 of file TaskSchedulerData.h.

◆ print()

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

Definition at line 63 of file TaskSchedulerData.h.

Member Data Documentation

◆ activationStats

StatsResult Boardcore::TaskStatsResult::activationStats

Definition at line 49 of file TaskSchedulerData.h.

◆ failedEvents

uint32_t Boardcore::TaskStatsResult::failedEvents

Definition at line 53 of file TaskSchedulerData.h.

◆ id

size_t Boardcore::TaskStatsResult::id

Definition at line 47 of file TaskSchedulerData.h.

◆ missedEvents

uint32_t Boardcore::TaskStatsResult::missedEvents

Definition at line 52 of file TaskSchedulerData.h.

◆ period

std::chrono::nanoseconds Boardcore::TaskStatsResult::period

Definition at line 48 of file TaskSchedulerData.h.

◆ periodStats

StatsResult Boardcore::TaskStatsResult::periodStats

Definition at line 50 of file TaskSchedulerData.h.

◆ workloadStats

StatsResult Boardcore::TaskStatsResult::workloadStats

Definition at line 51 of file TaskSchedulerData.h.


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