CodeProfiler EndFrame Method Delta Engine Documentation

Namespace: DeltaEngine.Profiling
Assembly: DeltaEngine.Profiling (in DeltaEngine.Profiling.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void EndFrame()

Implements

CodeProfilingProvider EndFrame 
Remarks

Tests: DeltaEngine.Profiling.Tests.CodeProfilerTests
Examples

1 unit tests call DeltaEngine.Profiling.CodeProfiler.EndFrame
[Test]
public void ProfilingWhenInactiveDoesNothing()
{
    var profiler = new CodeProfiler { IsActive = false };
    profiler.BeginFrame();
    profiler.Start(ProfilingMode.Rendering, Section);
    profiler.Stop(ProfilingMode.Rendering, Section);
    profiler.EndFrame();
    Assert.AreEqual(0, profiler.Sections[(int)ProfilingMode.Rendering].Count);
}
See Also