flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.57k stars 324 forks source link

New Dev Tools - Network monitoring for Isolates #2189

Open NightOwlCoder opened 4 years ago

NightOwlCoder commented 4 years ago

Hey there guys,

just saw the new Dart Tools on Flutter Days 2020, and went straight to my app, as for a long time I need a "log" of all the network calls.

What a disappointment to learn that Isolates calls do no appear.

Is this "my app" or is it not supported?

And thank you all for such amazing tools.

jacob314 commented 4 years ago

Fyi @kenzieschmoll

kenzieschmoll commented 4 years ago

From @bkonyi

I don't think this would really fit with the networking page. It might be worth investigating putting this functionality on a dedicated isolate page (I plan on porting some sort of isolate page from Observatory anyway). Here we could display all isolate related information, including recent inter-isolate messages, open ports (useful when trying to determine why an isolate isn't shutting down), and potentially outstanding asynchronous calls / zone information.

We'd need to add support for a lot of the features above, but it should be doable. Currently there's no monitoring of inter-isolate communication traffic exposed through the service, but you can get this information in human "readable" format by passing --trace-isolates to a debug build of the VM.