devtools-protocol icon indicating copy to clipboard operation
devtools-protocol copied to clipboard

Potential outdated definition for "Profiler.start"

Open Alaboudi1 opened this issue 1 year ago • 0 comments

I am building a devtool extension, which uses several protocol functions. However, the recent update to Chrome causes any use of Profiler to throw an exception.

For instance: chrome.debugger.sendCommand({tabId:xxxx},"Profiler.start").then(e=> console.log(e))

output index.html:1 Uncaught (in promise) Error: {"code":-32601,"message":"'Profiler.start' wasn't found"}

But Profiler.start is in the mapping here. Has this changed and not been updated yet here? https://github.com/ChromeDevTools/devtools-protocol/blob/ced9091036a6202c5892cd9499dd22d374241144/types/protocol-mapping.d.ts#L1053

Thanks

Alaboudi1 avatar Aug 07 '22 23:08 Alaboudi1