Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Profile.h File Reference
#include <vector>
#include "lib/adts/ring_buf.h"
#include "lib/posix/posix_pthread.h"
#include "ps/Profiler2.h"
#include "ps/Singleton.h"
Include dependency graph for Profile.h:

Go to the source code of this file.

Classes

class  CProfileNode
 
class  CProfileManager
 
class  CProfileSample
 

Macros

#define PROFILE_AMORTIZE_FRAMES   30
 
#define PROFILE_AMORTIZE_TURNS   5
 
#define g_Profiler   CProfileManager::GetSingleton()
 
#define PROFILE(name)   CProfileSample __profile(name)
 
#define PROFILE_START(name)   { CProfileSample __profile(name)
 
#define PROFILE_END(name)   }
 
#define PROFILE3(name)   PROFILE(name); PROFILE2(name)
 
#define PROFILE3_GPU(name)   PROFILE(name); PROFILE2(name); PROFILE2_GPU(name)
 

Macro Definition Documentation

◆ g_Profiler

#define g_Profiler   CProfileManager::GetSingleton()

◆ PROFILE

#define PROFILE (   name)    CProfileSample __profile(name)

◆ PROFILE3

#define PROFILE3 (   name)    PROFILE(name); PROFILE2(name)

◆ PROFILE3_GPU

#define PROFILE3_GPU (   name)    PROFILE(name); PROFILE2(name); PROFILE2_GPU(name)

◆ PROFILE_AMORTIZE_FRAMES

#define PROFILE_AMORTIZE_FRAMES   30

◆ PROFILE_AMORTIZE_TURNS

#define PROFILE_AMORTIZE_TURNS   5

◆ PROFILE_END

#define PROFILE_END (   name)    }

◆ PROFILE_START

#define PROFILE_START (   name)    { CProfileSample __profile(name)