Mojo.Timing
| Method Name and Description |
|---|
|
Mojo.Timing.createTimingString(prefix, label)
|
|
Mojo.Timing.get(category)
|
|
Mojo.Timing.getCategoriesWithPrefix(prefix)
|
|
Mojo.Timing.pause(category)
|
|
Mojo.Timing.PerfTimer(label)
|
|
Mojo.Timing.reportSceneTiming(sceneName, sceneWindow)
|
|
Mojo.Timing.reportTiming(prefix, label)
|
|
Mojo.Timing.reset(category)
|
|
Mojo.Timing.resetAll()
|
|
Mojo.Timing.resetAllWithPrefix(prefix)
|
|
Mojo.Timing.resetSceneTiming(sceneWindow)
|
|
Mojo.Timing.resume(category)
|
Method Detail
Report (with Mojo.Log.info) all the timings for a particular category prefix
- Parameters:
- {String} prefix
- Prefix to define which timings to show
- {String} label
- Label shown in the timing output
{Mojo.Timing.PerfTimer}
Mojo.Timing.get(category)
Get a performance timer for a particular category, creating it if needed.
- Parameters:
- {String} category
- Category of the timer
- Returns:
- Performance timer for the category, or the null timer if timing is disabled.
Return a list of category strings with a common prefix
- Parameters:
- {String} prefix
- the common prefix
- Returns:
- Array of matching categories
Pause timing for a particular category.
- Parameters:
- {String} category
- category name
Create a reset performance timer with a particular label.
- Parameters:
- {String} label
- Label used to identfy the timer, also used as the property name when added to the perfTimer's object.
Reports timings for scene push/pop operations, labeled with prefix 'scene#'.
- Parameters:
- sceneName
- sceneWindow
Report (with Mojo.Log.info) all the timings for a particular category prefix
- Parameters:
- {String} prefix
- Prefix to define which timings to show
- {String} label
- Label shown in the timing output
Reset the timings for a category.
- Parameters:
- {String} category
- name of the category to reset
Resets all the performance timers
Reset all the timers with a common prefix.
- Parameters:
- {String} prefix
- common prefix
Resets timings for scene push/pop operations
- Parameters:
- sceneWindow
Start or resume timing for a particular category.
- Parameters:
- {String} category
- category name