Title: [109913] trunk/PerformanceTests
Revision
109913
Author
[email protected]
Date
2012-03-06 05:41:21 -0800 (Tue, 06 Mar 2012)

Log Message

Web Inspector: Heap Snapshot test: split overal time metric into separate metrics.
https://bugs.webkit.org/show_bug.cgi?id=80409

Reviewed by Yury Semikhatsky.

* inspector/detailed-heapshots-smoke-test.html:

Modified Paths

Diff

Modified: trunk/PerformanceTests/ChangeLog (109912 => 109913)


--- trunk/PerformanceTests/ChangeLog	2012-03-06 13:37:58 UTC (rev 109912)
+++ trunk/PerformanceTests/ChangeLog	2012-03-06 13:41:21 UTC (rev 109913)
@@ -1,3 +1,12 @@
+2012-03-06  Ilya Tikhonovsky  <[email protected]>
+
+        Web Inspector: Heap Snapshot test: split overal time metric into separate metrics.
+        https://bugs.webkit.org/show_bug.cgi?id=80409
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/detailed-heapshots-smoke-test.html:
+
 2012-03-05  Ilya Tikhonovsky  <[email protected]>
 
         Web Inspector: [chromium] introduce HeapSnapshot performance test.

Modified: trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html (109912 => 109913)


--- trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html	2012-03-06 13:37:58 UTC (rev 109912)
+++ trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html	2012-03-06 13:41:21 UTC (rev 109913)
@@ -10,11 +10,19 @@
     function performanceTest(timer)
     {
 
-        var showPanelTimerCookie = timer.start("panel-update");
+        var transferTimerCookie;
+        var showTimerCookie;
+        var changeViewTimerCookie;
+        var clearTimerCookie;
+
+        var allTimerCookie = timer.start("summary-snapshot-time");
+        var backendTimerCookie = timer.start("take-snapshot");
         ProfilerAgent.takeHeapSnapshot(step0);
 
         function step0()
         {
+            timer.finish(backendTimerCookie);
+            transferTimerCookie = timer.start("transfer-snapshot");
             var profiles = WebInspector.panels.profiles.getProfiles("HEAP");
             WebInspector.panels.profiles.showProfile(profiles[profiles.length - 1]);
             InspectorTest.addSniffer(WebInspector.panels.profiles, "_finishHeapSnapshot", step1);
@@ -22,6 +30,8 @@
 
         function step1(uid)
         {
+            timer.finish(transferTimerCookie);
+            showTimerCookie = timer.start("show-snapshot");
             var panel = WebInspector.panels.profiles;
             var profile = "" WebInspector.DetailedHeapshotProfileType.TypeId)];
             InspectorTest.addSniffer(profile.proxy, "_callLoadCallbacks", step2);
@@ -29,19 +39,24 @@
 
         function step2()
         {
+            timer.finish(showTimerCookie);
+            timer.finish(allTimerCookie);
+            changeViewTimerCookie = timer.start("switch-to-containment-view");
             InspectorTest.switchToView("Containment", cleanup);
         }
 
         function cleanup()
         {
-            timer.finish(showPanelTimerCookie);
+            timer.finish(changeViewTimerCookie);
+            clearTimerCookie = timer.start("clear-snapshot");
             ProfilerAgent.clearProfiles(done);
             WebInspector.panels.profiles._reset();
         }
 
         function done()
         {
-            timer.done("take-snapshot");
+            timer.finish(clearTimerCookie);
+            timer.done("panel-update");
         }
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to