New Dev Tools - Network monitoring for Isolates
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.
Fyi @kenzieschmoll
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.
@NightOwlCoder sorry for the extreme delay. Do you mean the calls between isolates, on SendPort/RecievePort objects, or network calls made from child isolates / isolate groups?
Do you mean the calls between isolates, on SendPort/RecievePort objects
I think this issue is related to wanting to see traffic between isolates over ports, not anything networking related. FWIW, I think this would require a separate screen in DevTools and a lot of additional work in the VM to support.