RESOLVED FIXED 87656
Web Inspector: Add trace() method to the WorkerConsole
https://bugs.webkit.org/show_bug.cgi?id=87656
Summary Web Inspector: Add trace() method to the WorkerConsole
Alexei Filippov
Reported 2012-05-28 06:26:45 PDT
Add trace() method to the WorkerConsole.
Attachments
Patch (3.01 KB, patch)
2012-05-28 06:30 PDT, Alexei Filippov
no flags
Patch (2.89 KB, patch)
2012-05-28 08:15 PDT, Alexei Filippov
no flags
Patch (3.19 KB, patch)
2012-05-29 10:20 PDT, Alexei Filippov
no flags
Patch (2.81 KB, patch)
2012-05-30 05:07 PDT, Alexei Filippov
no flags
Alexei Filippov
Comment 1 2012-05-28 06:30:33 PDT
Yury Semikhatsky
Comment 2 2012-05-28 06:49:32 PDT
Comment on attachment 144346 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=144346&action=review > Source/WebCore/inspector/front-end/HeapSnapshotWorker.js:70 > + Error.captureStackTrace(obj, this.trace); Doe this method work in JSC?
Ilya Tikhonovsky
Comment 3 2012-05-28 06:54:00 PDT
Comment on attachment 144346 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=144346&action=review > Source/WebCore/inspector/front-end/HeapSnapshotProxy.js:71 > + if (message.method !== "log" && message.method !== "info" && message.method !== "error" && message.method !== "trace") { this line is not required
Alexei Filippov
Comment 4 2012-05-28 08:15:55 PDT
Alexei Filippov
Comment 5 2012-05-28 08:17:10 PDT
Comment on attachment 144346 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=144346&action=review >> Source/WebCore/inspector/front-end/HeapSnapshotProxy.js:71 >> + if (message.method !== "log" && message.method !== "info" && message.method !== "error" && message.method !== "trace") { > > this line is not required yes, you're right! killed it. >> Source/WebCore/inspector/front-end/HeapSnapshotWorker.js:70 >> + Error.captureStackTrace(obj, this.trace); > > Doe this method work in JSC? I'm not sure, but I doubt it works. Does it have to? It is never called in JSC.
Yury Semikhatsky
Comment 6 2012-05-28 08:24:46 PDT
(In reply to comment #5) > >> Source/WebCore/inspector/front-end/HeapSnapshotWorker.js:70 > >> + Error.captureStackTrace(obj, this.trace); > > > > Doe this method work in JSC? > > I'm not sure, but I doubt it works. Does it have to? It is never called in JSC. Heap snapshot front-end should work with both engines even though there is no support for heap profiling on the backend running JSC so please check if JSC supports Error.captureStackTrace and if it doesn't use something more portable, probably new Error().stack
Alexei Filippov
Comment 7 2012-05-29 10:20:03 PDT
Yury Semikhatsky
Comment 8 2012-05-29 23:08:47 PDT
Comment on attachment 144580 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=144580&action=review Could you please reply to my previous comment to make it clear if JSC supports Error.captureStackTrace > Source/WebCore/inspector/front-end/HeapSnapshotWorker.js:75 > + for (var func = arguments.callee; func; func = func.caller) Why not new Error().stack?
Alexei Filippov
Comment 9 2012-05-30 05:07:07 PDT
Alexei Filippov
Comment 10 2012-05-30 05:09:00 PDT
(In reply to comment #8) > (From update of attachment 144580 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=144580&action=review > > Could you please reply to my previous comment to make it clear if JSC supports Error.captureStackTrace Looks like it is not. > > > Source/WebCore/inspector/front-end/HeapSnapshotWorker.js:75 > > + for (var func = arguments.callee; func; func = func.caller) > > Why not new Error().stack? Done it this way.
WebKit Review Bot
Comment 11 2012-05-30 07:20:22 PDT
Comment on attachment 144783 [details] Patch Clearing flags on attachment: 144783 Committed r118921: <http://trac.webkit.org/changeset/118921>
WebKit Review Bot
Comment 12 2012-05-30 07:20:27 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.