32#ifndef PROFILE_HIGHLEVEL_H
33#define PROFILE_HIGHLEVEL_H
46 ProfileHighLevel(
const ProfileHighLevel&);
47 ProfileHighLevel& operator=(
const ProfileHighLevel&);
54 friend ProfileHighLevel;
57 Id(
void): m_idPtr(0) {}
86 const char *
GetName(
void)
const;
100 const char *
GetUnit(
void)
const;
127 const char *
GetValue(
unsigned frame)
const;
150 friend ProfileHighLevel;
154 Block& operator=(
const Block&);
166 explicit Block(
const char *name);
199 static Id AddProfile(
const char *name,
const char *descr,
const char *unit,
int precision,
int exp10=0);
233 ProfileHighLevel(
void);
238 static ProfileHighLevel Instance;
void add(float *sum, float *addend)
~Block()
Updates timer based function block.
const char * GetName(void) const
Returns the internal Id name.
const char * GetCurrentValue(void) const
Returns the current value.
void SetMax(double max)
Set a new maximum value.
const char * GetUnit(void) const
Returns the value's unit text.
const char * GetValue(unsigned frame) const
Returns the value for the given recorded frame/range.
void Increment(double add=1.0)
Increment the internal profile value.
const char * GetDescr(void) const
Returns the descriptive name.
const char * GetTotalValue(void) const
Returns the total value for all frames.
static bool FindProfile(const char *name, Id &id)
Searches for the given high level profile.
static bool EnumProfile(unsigned index, Id &id)
Enumerates the list of known high level profile values.
static Id AddProfile(const char *name, const char *descr, const char *unit, int precision, int exp10=0)
Registers a new high level profile value.
an internal high level profile ID