Hi,
I am using Chromium 38.0.2125.122 and want to know when blink
is running JavaScript (e.g., running a script, calling a function
scheduled by
setTimeout, etc.)---specifically, when blink is in a
V8RecursionScope. I see that Tracing can provide this information.
Now, I am trying to get the Tracing data via the Chrome Debugging Protocol version 1.1 [1]. I can issue
Tracing.start (and
Tracing.end) but have not been able to get any
Tracing.dataCollected event.
Suggestions?
Thanks,
Below I try to eliminate other potential issues:
First, when launching Chromium with
--trace-to-console=v8 and loading my simple test page, I can see:
[... trace_event_impl.cc :1996] CrRendererMain: v8.run[v8], {fileName:"http://.../script.js"}
[... trace_event_impl.cc :1996] CrRendererMain: | V8.Execute[v8]
.
.
.
[... trace_event_impl.cc :1996] CrRendererMain: | V8.Execute[v8] (7.847 ms)
[... trace_event_impl.cc :1996] CrRendererMain: v8.run[v8], {fileName:"http://.../script.js"} (8.419 ms)Then, my python client implementing the Chrome Debugging Protocol works fine: I can issue
Page.navigate and get
Network.requestWillBeSent and
Page.loadEventFired events, etc..
When I issue
Tracing.start with
"categories": "v8", I get back an error:
{'code':
-32602, 'message': "Some arguments of method 'Tracing.start' can't be
processed", 'data': ["Parameter 'options' with type 'String' was not
found."]}which I get around by also specifying
"options": "" or
"record-until-full", etc.
[1]
https://chromedevtools.github.io/debugger-protocol-viewer/1-1/