Function to reports timings for scene push/pop operations, labeled with prefix 'scene#'.
Parameter | Type | Description |
---|---|---|
sceneName | String | Name of scene push/pop timing to report. |
sceneWindow | Object | Window object containing scene. |
Example usage:
var timing = Mojo.Timing, that = this; timing.pause("scene#aboutToActivateLatency"); timing.resume("scene#activate"); this._active = true; timing.pause("scene#activate"); var report = function(name) { timing.pause('scene#total'); timing.reportSceneTiming(name, that.window); }; report.defer(this.sceneName);
0 Comments