OmegaEngine API  1.0.3
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

◆ ProfilerEvent() [1/2]

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.

◆ ProfilerEvent() [2/2]

OmegaEngine.ProfilerEvent.ProfilerEvent ( string  name)
inline

Starts a new profiler event with a certain name.

Parameters
nameThe name of the event.

Member Function Documentation

◆ Dispose()

void OmegaEngine.ProfilerEvent.Dispose ( )
inline

Ends the event.


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