iPXE
profiler Struct Reference

A data structure for storing profiling information. More...

#include <profile.h>

Data Fields

const char * name
 Name.
unsigned long started
 Start timestamp.
unsigned long stopped
 Stop timestamp.
unsigned int count
 Number of samples.
unsigned long mean
 Mean sample value (scaled)
unsigned int mean_msb
 Mean sample value MSB.
unsigned long long accvar
 Accumulated variance (scaled)
unsigned int accvar_msb
 Accumulated variance MSB.

Detailed Description

A data structure for storing profiling information.

Definition at line 27 of file profile.h.

Field Documentation

◆ name

const char* profiler::name

Name.

Definition at line 29 of file profile.h.

Referenced by profstat().

◆ started

unsigned long profiler::started

Start timestamp.

Definition at line 31 of file profile.h.

Referenced by profile_start_at(), and profile_started().

◆ stopped

unsigned long profiler::stopped

Stop timestamp.

Definition at line 33 of file profile.h.

Referenced by librm_test_exec(), profile_stop_at(), and profile_stopped().

◆ count

unsigned int profiler::count

Number of samples.

Definition at line 35 of file profile.h.

Referenced by profile_update(), profile_variance(), and profstat().

◆ mean

unsigned long profiler::mean

Mean sample value (scaled)

Definition at line 37 of file profile.h.

Referenced by profile_mean(), profile_mean_shift(), profile_okx(), and profile_update().

◆ mean_msb

unsigned int profiler::mean_msb

Mean sample value MSB.

This is the highest bit set in the raw (unscaled) value (i.e. one less than would be returned by flsl(raw_mean)).

Definition at line 43 of file profile.h.

Referenced by profile_mean_shift(), and profile_update().

◆ accvar

unsigned long long profiler::accvar

Accumulated variance (scaled)

Definition at line 45 of file profile.h.

Referenced by profile_accvar_shift(), profile_update(), and profile_variance().

◆ accvar_msb

unsigned int profiler::accvar_msb

Accumulated variance MSB.

This is the highest bit set in the raw (unscaled) value (i.e. one less than would be returned by flsll(raw_accvar)).

Definition at line 51 of file profile.h.

Referenced by profile_accvar_shift(), and profile_update().


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