[Webkit-unassigned] [Bug 163155] Web Inspector: The following program hangs the heap snapshot tool
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 28 17:48:13 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=163155
--- Comment #3 from Joseph Pecoraro <joepeck at webkit.org> ---
Running with `jsc`:
```
var stringArray;
var stringCount = 10000000;
var allocateMemory = function() {
stringArray = new Array(stringCount);
for (var i = 0; i < stringCount; ++i) {
stringArray[i] = String(i);
}
}
allocateMemory();
var start = Date.now();
var snapshotObject = generateHeapSnapshot();
var end = Date.now();
print("" + ((end - start) / 1000) + " seconds");
print("" + (JSON.stringify(snapshotObject).length / 1024 / 1024) + "MB");
```
On my Mac Pro this takes ~20s and the JSON string is ~500MB.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161129/d6085d9f/attachment.html>
More information about the webkit-unassigned
mailing list