OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | List of all members
OmegaEngine.ProfilerEvent Struct Reference

Struct that allows you to profile timed execution blocks. More...

Inheritance diagram for OmegaEngine.ProfilerEvent:

Public Member Functions

 ProfilerEvent (Func< string > getName)
 Starts a new profiler event with a certain name. More...
 
 ProfilerEvent (string name)
 Starts a new profiler event with a certain name. More...
 
void Dispose ()
 Ends the event. More...
 

Detailed Description

Struct that allows you to profile timed execution blocks.

using(new LogEvent("Message")) {}

Do not use these over cross!

Constructor & Destructor Documentation

OmegaEngine.ProfilerEvent.ProfilerEvent ( Func< string >  getName)
inline

Starts a new profiler event with a certain name.

Parameters
getNameA delegate for getting the name of the event.
OmegaEngine.ProfilerEvent.ProfilerEvent ( string  name)
inline

Starts a new profiler event with a certain name.

Parameters
nameThe name of the event.

Member Function Documentation

void OmegaEngine.ProfilerEvent.Dispose ( )
inline

Ends the event.


The documentation for this struct was generated from the following file: