SystemProfilerTests CompareProfilerToOtherResult Method Delta Engine Documentation

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

public void CompareProfilerToOtherResult()
Examples

[Test, CloseAfterFirstFrame]
public void CompareProfilerToOtherResult()
{
    var profiler1 = new SystemProfiler();
    profiler1.Log(ProfilingMode.Fps, systemInformation);
    SystemProfilerSection results1 = profiler1.GetProfilingResults(ProfilingMode.Fps);
    var profiler2 = new SystemProfiler();
    profiler2.Log(ProfilingMode.Engine, systemInformation);
    SystemProfilerSection results2 = profiler2.GetProfilingResults(ProfilingMode.Fps);
    Assert.AreNotEqual(0, results1.CompareTo(results2));
}
See Also