Table of Contents

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

getName Func<string>

A delegate for getting the name of the event.

ProfilerEvent(string)

Starts a new profiler event with a certain name.

public ProfilerEvent(string name)

Parameters

name string

The name of the event.

Methods

Dispose()

Ends the event.

public void Dispose()