| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 if (window.testRunner) { | 6 if (window.testRunner) { |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 InspectorTest.eventHandler["HeapProfiler.heapStatsUpdate"] = function(messag
eObject) | 78 InspectorTest.eventHandler["HeapProfiler.heapStatsUpdate"] = function(messag
eObject) |
| 79 { | 79 { |
| 80 var samples = messageObject["params"]["statsUpdate"]; | 80 var samples = messageObject["params"]["statsUpdate"]; |
| 81 for (var i = 0; i < samples.length; i += 3) { | 81 for (var i = 0; i < samples.length; i += 3) { |
| 82 index = samples[i]; | 82 index = samples[i]; |
| 83 sizes[index] = samples[i+2]; | 83 sizes[index] = samples[i+2]; |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 InspectorTest.sendCommand("HeapProfiler.startTrackingHeapObjects", {}, track
ingStarted); | 87 InspectorTest.sendCommand("HeapProfiler.startTrackingHeapObjects", {}, track
ingStarted); |
| 88 //@ sourceURL=heap-objects-tracking.html | 88 //# sourceURL=heap-objects-tracking.html |
| 89 } | 89 } |
| 90 </script> | 90 </script> |
| 91 </head> | 91 </head> |
| 92 <body onload="setupIntervalAndRunTest()"> | 92 <body onload="setupIntervalAndRunTest()"> |
| 93 <p>Test that heap tracking actually reports data fragments.</p> | 93 <p>Test that heap tracking actually reports data fragments.</p> |
| 94 </body> | 94 </body> |
| 95 </html> | 95 </html> |
| OLD | NEW |