devtools icon indicating copy to clipboard operation
devtools copied to clipboard

New Dev Tools - Network monitoring for Isolates

Open NightOwlCoder opened this issue 5 years ago • 4 comments

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.

NightOwlCoder avatar Jul 17 '20 05:07 NightOwlCoder

Fyi @kenzieschmoll

jacob314 avatar Jul 24 '20 15:07 jacob314

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.

kenzieschmoll avatar Jul 24 '20 17:07 kenzieschmoll

@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?

srawlins avatar Feb 06 '25 00:02 srawlins

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.

bkonyi avatar Feb 10 '25 16:02 bkonyi