Unreviewed followupfix for r96110.
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 15:50:42 +0000 (15:50 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 15:50:42 +0000 (15:50 +0000)
This is a small adjustment of the heap size delta calculation.

* inspector/performance/resources/performance-test.js:
(initialize_TimeTracker.InspectorTest.runPerformanceTest.Timer.prototype.done):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96114 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/inspector/performance/resources/performance-test.js

index 63e01258465cd0e329625cee7cae0fc385d8d2ff..0b0c15645c45f3408a66f1ab6b387ff111713cd0 100644 (file)
@@ -1,3 +1,11 @@
+2011-09-27  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        Unreviewed followupfix for r96110.
+        This is a small adjustment of the heap size delta calculation.
+
+        * inspector/performance/resources/performance-test.js:
+        (initialize_TimeTracker.InspectorTest.runPerformanceTest.Timer.prototype.done):
+
 2011-09-27  Ilya Tikhonovsky  <loislo@chromium.org>
 
         Web Inspector: UI performance: introduce heap size tracking stats.
index 54b6df9bb974f65e035e0698b68c5fd545c3f6e7..3290ebebe01fb2ee26306f9f2e9f077094000ce2 100644 (file)
@@ -35,8 +35,9 @@ InspectorTest.runPerformanceTest = function(perfTest, executeTime, callback)
 
         done: function()
         {
-            this._heapSizeDeltas.push(console.memory.usedJSHeapSize - this._jsHeapSize);
-            this._jsHeapSize = this._getJSHeapSize();
+            var newJSHeapSize = this._getJSHeapSize();
+            this._heapSizeDeltas.push(newJSHeapSize - this._jsHeapSize);
+            this._jsHeapSize = newJSHeapSize;
 
             var time = new Date();
             if (time - this._testStartTime < executeTime)