www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Timing.reportSceneTiming(sceneName, sceneWindow)

Mojo.Timing.reportSceneTiming(sceneName, sceneWindow)

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

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)