Skyscraper 2.0
SBS::ProfileSample Class Reference

#include <profiler.h>

Public Member Functions

 ProfileSample (const char *name, bool advanced=true)
 
 ~ProfileSample (void)
 

Private Attributes

bool is_advanced
 

Detailed Description

ProfileSampleClass is a simple way to profile a function's scope Use the SBS_PROFILE macro at the start of scope to time

Definition at line 122 of file profiler.h.

Constructor & Destructor Documentation

◆ ProfileSample()

SBS::ProfileSample::ProfileSample ( const char * name,
bool advanced = true )

Definition at line 367 of file profiler.cpp.

References SBS::enable_advanced_profiling, is_advanced, and SBS::ProfileManager::Start_Profile().

Here is the call graph for this function:

◆ ~ProfileSample()

SBS::ProfileSample::~ProfileSample ( void )

Definition at line 375 of file profiler.cpp.

References SBS::enable_advanced_profiling, is_advanced, and SBS::ProfileManager::Stop_Profile().

Here is the call graph for this function:

Member Data Documentation

◆ is_advanced

bool SBS::ProfileSample::is_advanced
private

Definition at line 127 of file profiler.h.

Referenced by ProfileSample(), and ~ProfileSample().


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