Struct ProfilerEvent
- Namespace
- OmegaEngine
- Assembly
- OmegaEngine.dll
Struct that allows you to profile timed execution blocks.
public readonly struct ProfilerEvent : IDisposable
- Implements
- Inherited Members
- Extension Methods
Examples
using(new LogEvent("Message")) {}
Remarks
Do not use these over cross!
Constructors
ProfilerEvent(Func<string>)
Starts a new profiler event with a certain name.
public ProfilerEvent(Func<string> getName)
Parameters
ProfilerEvent(string)
Starts a new profiler event with a certain name.
public ProfilerEvent(string name)
Parameters
name
stringThe name of the event.
Methods
Dispose()
Ends the event.
public void Dispose()