Chrome Debugging Protocol: HeapProfiler.getHeapSnapshot Ignores Callback

≡放荡痞女 提交于 2019-12-05 18:51:27

It is a bug in DevTools. I've filled an issue in chrome bug tracker.

Fortunately there is a workaround. You have to enable Debugger agent before getting the snapshot.

chrome.debugger.sendCommand(debuggeeId,"Debugger.enable", { }, function() { });

Three other commands were also affected by this bug.

Profiler.start
Profiler.stop
Profiler.getCPUProfile
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!