You.i Engine
CYIAutoProfiler Class Reference

Detailed Description

An RAII class that starts a profiler when created, and stops it when destroyed.

This class is used to start a profiler and automatically stop it when the CYIAutoProfiler instance goes out of scope.

Sample usage:

{
CYIAutoProfiler autoProfiler(m_profileData);
// Do some things that need to be profiled
// When the function exits, the m_profileData is automatically stopped as autoProfiler is destroyed
}

#include <utility/YiAutoProfiler.h>

Public Member Functions

 CYIAutoProfiler (CYIProfileData *pProfileData)
 
 ~CYIAutoProfiler ()
 

Constructor & Destructor Documentation

CYIAutoProfiler::CYIAutoProfiler ( CYIProfileData pProfileData)
inline
CYIAutoProfiler::~CYIAutoProfiler ( )
inline

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