struct ProfilerCPU::ThreadInfo

Contains data about an active profiling thread.

Public

Constructors

ThreadInfo

ThreadInfo()

Methods

Begin

void Begin(const char *_name)

Starts profiling on the thread.

New primary profiling block is created with the given name.

End

void End()

Ends profiling on the thread.

You should end all samples before calling this, but if you don't they will be terminated automatically.

Reset

void Reset()

Deletes all internal profiling data and makes the object ready for another iteration.

Should be called after end in order to delete any existing data.

GetBlock

ProfiledBlock *GetBlock(const char *name)

Gets the primary profiling block used by the thread.

ReleaseBlock

void ReleaseBlock(ProfiledBlock *block)

Deletes the provided block.

Fields

IsActive

bool IsActive

RootBlock

ProfiledBlock * RootBlock

ActiveBlock

ActiveBlocks