APM:Libraries
Public Member Functions | Public Attributes | Private Types | List of all members
Linux::Perf_Counter Class Reference

#include <Perf.h>

Collaboration diagram for Linux::Perf_Counter:
[legend]

Public Member Functions

 Perf_Counter (perf_counter_type type_, const char *name_)
 

Public Attributes

const char * name
 
Perf_Lttng lttng
 
perf_counter_type type
 
uint64_t count
 
uint64_t start
 
uint64_t total
 
uint64_t min
 
uint64_t max
 
double avg
 
double m2
 

Private Types

using perf_counter_type = AP_HAL::Util::perf_counter_type
 
using perf_counter_t = AP_HAL::Util::perf_counter_t
 

Detailed Description

Definition at line 31 of file Perf.h.

Member Typedef Documentation

◆ perf_counter_t

Definition at line 33 of file Perf.h.

◆ perf_counter_type

Definition at line 32 of file Perf.h.

Constructor & Destructor Documentation

◆ Perf_Counter()

Linux::Perf_Counter::Perf_Counter ( perf_counter_type  type_,
const char *  name_ 
)
inline

Definition at line 36 of file Perf.h.

Member Data Documentation

◆ avg

double Linux::Perf_Counter::avg

Definition at line 56 of file Perf.h.

Referenced by Linux::Perf::end().

◆ count

uint64_t Linux::Perf_Counter::count

Definition at line 48 of file Perf.h.

Referenced by Linux::Perf::count(), and Linux::Perf::end().

◆ lttng

Perf_Lttng Linux::Perf_Counter::lttng

Definition at line 44 of file Perf.h.

Referenced by Linux::Perf::begin(), Linux::Perf::count(), and Linux::Perf::end().

◆ m2

double Linux::Perf_Counter::m2

Definition at line 57 of file Perf.h.

Referenced by Linux::Perf::end().

◆ max

uint64_t Linux::Perf_Counter::max

Definition at line 54 of file Perf.h.

Referenced by Linux::Perf::end().

◆ min

uint64_t Linux::Perf_Counter::min

Definition at line 53 of file Perf.h.

Referenced by Linux::Perf::end(), and Perf_Counter().

◆ name

const char* Linux::Perf_Counter::name

Definition at line 43 of file Perf.h.

Referenced by Linux::Perf::begin(), Linux::Perf::count(), and Linux::Perf::end().

◆ start

uint64_t Linux::Perf_Counter::start

Definition at line 51 of file Perf.h.

Referenced by Linux::Perf::begin(), and Linux::Perf::end().

◆ total

uint64_t Linux::Perf_Counter::total

Definition at line 52 of file Perf.h.

Referenced by Linux::Perf::end().

◆ type

perf_counter_type Linux::Perf_Counter::type

Definition at line 46 of file Perf.h.

Referenced by Linux::Perf::begin(), Linux::Perf::count(), Linux::Perf::end(), and Perf_Counter().


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