Closed LinXiaoTao closed 4 years ago
Need to enable cpu profile first. Why do I have to enable the cpu profile in observatory first, can I enable it directly in the dev tool?
What exactly do you mean by "enable the CPU profile in observatory"? What version of DevTools are you on? You can find the version in the DevTools info page or by opening up the chrome dev console.
@kenzieschmoll
Dart SDK:
2.5.0
DevTools:
0.1.10
@bkonyi can we make the _enableProfiler rpc a public method on the vm_service?
This functionality is now available via https://github.com/dart-lang/sdk/commit/60c34ac4203ff0bf9f026ba4568f7b4d9a2ad9bf. Need to add a hook in devtools to modify this flag.
Added to M14 as this seems like easy polish to bring DevTools on par with the observatory. I'm fine with the button only being exposed in the flutter version of DevTools.
CPU Flame Chart in the Timeline.
flutter doctor -v