I just saw this link, about how to inspect \"Canvas frames\" on Chrome Dev Tools, but how to do it on Chrome extensions?
I think that the chrome.debugger.sendC
EDIT: As shown in RobW's answer, required functionality was removed from Chrome.
The relevant documentation is at tip-of-the-tree debugging protocol docs.
Specifically, this is done via the LayerTree
domain. Do note: since it's not in an officially supported version of the debugger protocol, it's subject to change without notice.
The flow with the API presumably would be to attach to the page, send a command to enable profiling and then listen for appropriate events.
You can see a sample of how Debugger works, and try to figure it out from the docs or sniff the actual protocol by remote-debugging a Dev Tools page's WebSocket traffic.