![]() |
GearBlocks
The GearBlocks Lua scripting API
|
The profiler. More...
Public Member Functions | |
IProfilerMetricRecorder | CreateMetricRecorder (string category, string name, int capacity=1) |
Create a profile metric recorder. | |
void | DestroyMetricRecorder (string category, string name) |
Destroy a previously created profile metric recorder. | |
void | DestroyMetricRecorder (IProfilerMetricRecorder metricRecorder) |
Destroy a previously created profile metric recorder. | |
IProfilerMetricRecorder | CreateMetricRecorder (string category, string name, int capacity=1) |
Create a profile metric recorder. | |
void | DestroyMetricRecorder (string category, string name) |
Destroy a previously created profile metric recorder. | |
void | DestroyMetricRecorder (IProfilerMetricRecorder metricRecorder) |
Destroy a previously created profile metric recorder. | |
The profiler.
Available in Lua via the "Profiler" global, for example:
IProfilerMetricRecorder SmashHammer.Profiling.ProfilerAsset.CreateMetricRecorder | ( | string | category, |
string | name, | ||
int | capacity = 1 |
||
) |
Create a profile metric recorder.
category | Profiler category name. |
name | Profiler marker or counter name. |
capacity | Maximum amount of samples to be collected. |
Implements SmashHammer.Profiling.IProfiler.
void SmashHammer.Profiling.ProfilerAsset.DestroyMetricRecorder | ( | string | category, |
string | name | ||
) |
Destroy a previously created profile metric recorder.
category | Profiler category name. |
name | Profiler marker or counter name. |
Implements SmashHammer.Profiling.IProfiler.
void SmashHammer.Profiling.ProfilerAsset.DestroyMetricRecorder | ( | IProfilerMetricRecorder | metricRecorder | ) |
Destroy a previously created profile metric recorder.
metricRecorder | The metric recorder to destroy. |
Implements SmashHammer.Profiling.IProfiler.