Sets up everything needed for an active script events provider.
Protected Readonly_attributeProtected Readonly_eventProtected_frameProtected_nextProtected Readonly_stopwatchProtected_stopwatchAdd this to nanoseconds from _stopwatch to get profiler time specified by profiler runtime.
Enables recording of profiler stats in script events. This typically requires a script -> C++ interop call, which might affect pefromance, so it is disabled by default.
Collection of profiler stats that should be captured during profiling.
Runtime should continuously capture profiling data, but data older than last frame can be automatically removed.
Protected Static Readonly_attributesProtected Static Readonly_eventsProtected Static_nextProtected Static_nextStaticinstancePointer to a singleton instance of profiler script events.
If the attribute value is active, this will synchronize it into profiler runtime database at the end of frame. Both active and inactive attribute value instances will be returned into attribute value instance pool after synchronizations.
New attribute value emitted by profiled code.
Submits recorded attribute values into profiler runtime database. These will be assigned to the correct event samples. Can be called only during profiler data synchronization.
Array with attribute value data.
If the event sample is active, this will synchronize it into profiler runtime database at the end of frame. Both active and inactive event sample instances will be returned into event sample instance pool after synchronizations.
New event sample emitted by profiled code.
Submits recorded event samples into profiler runtime database. Can be called only during profiler data synchronization.
Array with event sample data.
Returns a new value that represents a change in value between between two values from two different time points. This basically substracts given end value from given begin value.
Value of first time point.
Value of the second time point.
Resulting stat value of the substraction operation.
Returns current value of given profiler stat.
Identifier of the stat to read.
Current value of the profiler stat.
StaticaddAdds attribute definition to be synchronized into profiler runtime at the end of frame.
New profiler attribute to be added to database.
StaticaddAdds event definition to be synchronized into profiler runtime at the end of frame.
New profiler event to be added to database.
StaticgetStaticgetStaticsetSets singleton instance of profiler script events. This should be called only once after module reload.
Provider instance that will be used as singleton instance.
The PooledProfilerScriptEvents class is a central class in script domain that gathers data from profiling before moving them to native storage.