StopWatchReporter
A service that times named tasks and reports their durations, classified by device platform and country code. Not available to creator scripts.
| Memory category | Instances |
|---|
Member index 3
Description
Not available to creator scripts. StopWatchReporter is used by the Roblox app to measure the duration of logic flows. Each measurement is classified by device platform and country code.
The service groups timing measurements into named reports. Starting a task begins timing a named task within a report and returns an integer task ID; finishing a task stops that task's timer; and sending a report finalizes it, submitting the elapsed time of each finished task and preventing any further tasks from being added to that report.
Timing is only collected on the Android and iOS clients; on other platforms
these methods do nothing and starting a task returns -1.
History 12
- 583 Add StartTask
- 583 Add SendReport
- 583 Add FinishTask
- 583 Add StopWatchReporter
- 557 Remove StopWatchReporter
- 462 Change ThreadSafety of StartTask from to Unsafe
- 462 Change ThreadSafety of SendReport from to Unsafe
- 462 Change ThreadSafety of FinishTask from to Unsafe
- 364 Add StartTask
- 364 Add SendReport
- 364 Add FinishTask
- 364 Add StopWatchReporter
Members 3
FinishTask
| Parameters (1) | ||
|---|---|---|
| taskId | int | |
| Returns (1) | ||
| null | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 4
- 583 Add FinishTask
- 557 Remove StopWatchReporter
- 462 Change ThreadSafety of FinishTask from to Unsafe
- 364 Add FinishTask
SendReport
| Parameters (1) | ||
|---|---|---|
| reportName | string | |
| Returns (1) | ||
| null | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 4
- 583 Add SendReport
- 557 Remove StopWatchReporter
- 462 Change ThreadSafety of SendReport from to Unsafe
- 364 Add SendReport
StartTask
| Parameters (2) | ||
|---|---|---|
| reportName | string | |
| taskName | string | |
| Returns (1) | ||
| int | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |