32#ifndef PROFILE_FUNCLEVEL_H
33#define PROFILE_FUNCLEVEL_H
47 ProfileFuncLevel(
const ProfileFuncLevel&);
48 ProfileFuncLevel& operator=(
const ProfileFuncLevel&);
72 bool Enum(
unsigned index,
Id &
id,
unsigned *countPtr=0)
const;
87 Id(
void): m_funcPtr(0) {}
130 unsigned _int64
GetCalls(
unsigned frame)
const;
138 unsigned _int64
GetTime(
unsigned frame)
const;
165 friend ProfileFuncLevel;
188 return unsigned(m_threadID);
205 static bool EnumThreads(
unsigned index, Thread &thread);
A function level profile ID.
unsigned GetAddress(void) const
Returns function address.
unsigned _int64 GetFunctionTime(unsigned frame) const
Determine time spend in this function only (exclude any time spend in child functions).
unsigned _int64 GetCalls(unsigned frame) const
Determine call counts.
@ Total
return the total value/count
unsigned GetLine(void) const
Returns the line number for this Id.
unsigned _int64 GetTime(unsigned frame) const
Determine time spend in this function and its children.
const char * GetSource(void) const
Returns the source file this Id is in.
const char * GetFunction(void) const
Returns the function name for this Id.
IdList GetCaller(unsigned frame) const
Determine the list of caller Ids.
A list of function level profile IDs.
bool Enum(unsigned index, Id &id, unsigned *countPtr=0) const
Enumerates the list of IDs.
unsigned GetId(void) const
Returns a unique thread ID (not related to Windows thread ID)
bool EnumProfile(unsigned index, Id &id) const
Enumerates the list of known function level profile values.
The function level profiler.
static bool EnumThreads(unsigned index, Thread &thread)
Enumerates the list of known and profiled threads.