Sets up everything needed for an active script events provider.
Protected Readonly_Protected Readonly_Protected_Protected_Protected Readonly_Protected_Add 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_Protected Static Readonly_Protected Static_Protected Static_StaticinstancePointer to a singleton instance of profiler script events.
Submits attribute definition into profiler runtime database. Can be called only during profiler data synchronization.
Unique identifier of the attribute definition.
User-friendly name for the attribute.
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.
Submits event definition into profiler runtime database. Can be called only during profiler data synchronization.
Unique identifier of the event definition.
User-friendly name for the event.
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 identifier of the current frame according to profiler runtime.
Current frame identifier.
Returns identifier to be associated with new event sample.
New event sample identifier.
Returns current profiler time that should be used for sample measurements.
Profiler time in nanoseconds.
Returns best estimate for current time defined by profiler runtime.
Current profiler time to be used by sample measurements.
Returns identifier that was assigned to ProfielrScriptEvents profiler provider when it was registered in ProfilerRuntime.
The provider identifier.
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.
Registers the provider with the profiler runtime.
False if the registration failed.
Called from native code to inform provider about new frame being started and to update profiling configuration.
Identifier to be used for following frame.
Called from native code to trigger synchronization of captured data back into profiler runtime.
Unregisters the provider with the profiler runtime.
False if the unregistration failed.
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.
StaticgetReturns identifier to be associated with new attribute definition.
New attribute identifier.
StaticgetReturns identifier to be associated with new event definition.
New event identifier.
StaticsetSets 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.