ChromeDevTools / devtools-protocol

Chrome DevTools Protocol
https://chromedevtools.github.io/devtools-protocol/
BSD 3-Clause "New" or "Revised" License
1.15k stars 226 forks source link

Potential outdated definition for "Profiler.start" #282

Closed Alaboudi1 closed 2 years ago

Alaboudi1 commented 2 years ago

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