You.i Engine
YiAutoProfiler.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_AUTO_PROFILER_H_
3 #define _YI_AUTO_PROFILER_H_
4 
6 
28 {
29 public:
30  CYIAutoProfiler(CYIProfileData *pProfileData) : m_pProfileData(pProfileData)
31  {
32  m_pProfileData->MarkBegin();
33  }
34 
36  {
37  m_pProfileData->MarkEnd();
38  }
39 
40 private:
42  CYIAutoProfiler &operator=(const CYIAutoProfiler &);
43 
44  CYIProfileData *m_pProfileData;
45 };
46 
49 #endif // _YI_AUTO_PROFILER_H_
An RAII class that starts a profiler when created, and stops it when destroyed.
Definition: YiAutoProfiler.h:27
~CYIAutoProfiler()
Definition: YiAutoProfiler.h:35
This class is used as a profiling or a measurement tool for recurring activities. By marking the begi...
Definition: YiProfileData.h:33
CYIAutoProfiler(CYIProfileData *pProfileData)
Definition: YiAutoProfiler.h:30