Public Member Functions

xl7::runtime::ProfileRegistry Class Reference

#include <ProfileRegistry.h>

Inheritance diagram for xl7::runtime::ProfileRegistry:
cl7::designpatterns::Singleton< ProfileRegistry >

List of all members.

Public Member Functions

 ProfileRegistry (void)
 ~ProfileRegistry (void)
Sampleget_last_opened_sample () const
unsigned get_open_sample_count () const
float get_frame_time () const
Sampleopen_sample (const cl7::string_type &sample_name)
void close_sample (Sample *sample)
void reset_sample (const cl7::string_type &sample_name)
void reset_sample (Sample *sample)
void reset_all ()
void update (float frame_time)
void log (cl7::logging::Logger *logger=NULL) const

Constructor & Destructor Documentation

xl7::runtime::ProfileRegistry::ProfileRegistry ( void   ) 

Default constructor.

xl7::runtime::ProfileRegistry::~ProfileRegistry ( void   ) 

Destructor.


Member Function Documentation

void xl7::runtime::ProfileRegistry::close_sample ( Sample sample  ) 

Closes the given sample.

float xl7::runtime::ProfileRegistry::get_frame_time (  )  const [inline]

Returns the time (in seconds) of the current frame.

Sample* xl7::runtime::ProfileRegistry::get_last_opened_sample (  )  const [inline]

Returns the last opened sample.

unsigned xl7::runtime::ProfileRegistry::get_open_sample_count (  )  const [inline]

Returns the number of currently open samples.

void xl7::runtime::ProfileRegistry::log ( cl7::logging::Logger logger = NULL  )  const
Sample * xl7::runtime::ProfileRegistry::open_sample ( const cl7::string_type sample_name  ) 

Opens and returns the sample with the given name.

void xl7::runtime::ProfileRegistry::reset_all (  ) 

Resets all samples.

void xl7::runtime::ProfileRegistry::reset_sample ( Sample sample  ) 

Resets the given sample.

void xl7::runtime::ProfileRegistry::reset_sample ( const cl7::string_type sample_name  ) 

Resets the sample with the given name.

void xl7::runtime::ProfileRegistry::update ( float  frame_time  ) 

Updates all samples.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines