Skip to main content

ProfileMarker

A static class in Alta.Profiling.Runtime, Alta.Profiling.

Static helper that keeps named Unity profiler markers, only in debug builds. As decompiled it never begins or ends a marker sample.

Fields​

1 private and internal field
MemberWhat it is
private static readonly Dictionary<string, ProfilerMarker> MarkersThe markers by name.

Methods​

MemberWhat it is
static void AddProfile(string name)Debug builds: creates a ProfilerMarker named "[ProfilingSession] " plus the name if it doesn't exist yet.
static void EndProfile(string name)Debug builds: looks up the named marker but does nothing with it.