Profile module

Classes

class  common::ProfilerItem
 Pozycja danych profilera. More...
class  common::Profiler
 Profiler. More...
class  common::Profile
 Klasa, której obiekt możesz dla wygody utworzyć zamiast wywoływać Begin i End profilera. More...
class  common::FlatProfiler< KeyT, KeyTraits >
 Class to measure duration of some code in a flat manner, without any hierarchy. More...
class  common::FlatProfilerSampler< KeyT, KeyTraits >
 Support RIAA class to collect time sample for FlatProfiler. More...

Defines

#define PROFILE_GUARD(profiler, Name)   common::Profile __profile_guard_object(profiler, Name);

Enumerations

enum  common::PROFILER_UNITS { common::PROFILER_UNITS_MILLISECONDS, common::PROFILER_UNITS_SECONDS }

Functions

void common::FlatProfiler::Clear ()
 Clears all the remembered results.
void common::FlatProfiler::AddSample (const KeyT &key, GameTime timeInterval)
 Registers new sample collected by custom time measurement.
void common::FlatProfiler::FormatString (tstring *out, PROFILER_UNITS units)
 Returns multiline string with all results in unsorted order.

Detailed Description

Documentation: Module_Profiler
Header: Profiler.hpp


Define Documentation

#define PROFILE_GUARD ( profiler,
Name   )     common::Profile __profile_guard_object(profiler, Name);

Dla jeszcze więszej wygody, zamiast tworzyć obiekt klasy Profile wystarczy na początku guardowanej do profilowania funkcji czy dowolnego bloku { } postawić to makro.


Enumeration Type Documentation

Enumerator:
PROFILER_UNITS_MILLISECONDS 
PROFILER_UNITS_SECONDS 

Function Documentation

template<typename KeyT , typename KeyTraits >
void common::FlatProfiler< KeyT, KeyTraits >::AddSample ( const KeyT &  key,
GameTime  timeInterval 
) [inline, inherited]

Registers new sample collected by custom time measurement.

template<typename KeyT , typename KeyTraits >
void common::FlatProfiler< KeyT, KeyTraits >::Clear (  )  [inline, inherited]

Clears all the remembered results.

template<typename KeyT , typename KeyTraits >
void common::FlatProfiler< KeyT, KeyTraits >::FormatString ( tstring out,
PROFILER_UNITS  units 
) [inline, inherited]

Returns multiline string with all results in unsorted order.


Generated on Wed Dec 16 20:44:53 2009 for CommonLib by  doxygen 1.6.1