Constructs event with given name and adds it to static map.
User-friendly name of this event.
ReadonlyidentifierIdentifier of profiler event that is unique within the script events provider.
ReadonlynameUser-friendly name of profiler event.
Protected Static Readonly_markersStaticfastReturns object that starts measuring the event. This has better performance because the ProfilerEvent instance is explicitly available here.
Instance of profiler event to be sampled.
StaticfindReturns profiler marker by name.
Name of the event to be found and returned.
StaticsampleReturns object that starts measuring the event. This provides slightly worse performance because the event object first needs to be found in a string map.
Name of the event that should be sampled.
The ProfilerEvent class is a definition for events and class to start recording them.
Simple usage:
Setting an attribute:
Better performance:
Better performance with an attribute: