Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js

Issue 197533009: Remove WebInspector.HeapSnapshotArraySlice (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/heap-snapshot.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js
diff --git a/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js b/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js
index e3b3ffff1e4f6f37cbca5af11a91ab2c3836d382..453f4b88aff67917754841d67dc49a7a3d663427 100644
--- a/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js
+++ b/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js
@@ -34,6 +34,8 @@ InspectorTest.takeHeapSnapshot = function(callback)
{
var serializedSnapshot = chunks.join("");
var parsed = JSON.parse(serializedSnapshot);
+ parsed.nodes = new Uint32Array(parsed.nodes);
+ parsed.edges = new Uint32Array(parsed.edges);
var snapshot = new WebInspector.JSHeapSnapshot(parsed, new WebInspector.HeapSnapshotProgress());
callback(snapshot);
InspectorTest.log("SUCCESS: didGetHeapSnapshot");
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/heap-snapshot.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698