ScriptProfiler.startSampling
FunctionStarts the sampling profiler.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
startSampling(
frequencyHz?):void
Starts the sampling profiler.
Parameters
| Parameter | Type | Description |
|---|---|---|
frequencyHz? | number | Sampling rate in Hz. Defaults to 1000 if omitted or <= 0. Higher rates capture finer detail at the cost of CPU overhead. |
Returns
void