Pyrogenesis  trunk
Classes | Macros | Typedefs
Profile.h File Reference
#include <vector>
#include "lib/adts/ring_buf.h"
#include "ps/Profiler2.h"
#include "ps/Singleton.h"
#include "ps/ThreadUtil.h"
#include <boost/flyweight.hpp>
#include <boost/flyweight/key_value.hpp>
#include <boost/flyweight/no_locking.hpp>
#include <boost/flyweight/no_tracking.hpp>
Include dependency graph for Profile.h:

Go to the source code of this file.

Classes

class  CProfileNode
 
class  CProfileManager
 
class  CProfileSample
 
class  CProfileSampleScript
 

Macros

#define PROFILE_AMORTIZE_FRAMES   30
 
#define PROFILE_AMORTIZE_TURNS   1
 
#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)
 

Typedefs

typedef boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::no_locking > StringFlyweight
 

Macro Definition Documentation

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

Typedef Documentation

typedef boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::no_locking> StringFlyweight