flutter / devtools

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

why does the only method that appears is socket? #8380

Open Renoldi opened 1 month ago

Renoldi commented 1 month ago

<-- Please describe your problem here. Be sure to include repro steps. -->


DevTools version: 2.37.3 IDE: VSCode Connected Device: CPU / OS: x64 (64 bit) android Connected app type: Flutter native (debug build) Dart Version: 3.5.3 Flutter Version: 3.24.3 / stable Framework / Engine: 2663184aa7 / 36335019a8

LiamMarega commented 1 month ago

I have the same problem

elliette commented 1 month ago

@bkonyi Was this something you fixed with https://github.com/flutter/devtools/issues/3033? Your changes were included in the 2.37.2 release, so I would have expected this to be fixed.

elliette commented 1 month ago

@Renoldi Could you share a small repro with us and share whichever package you are using to send these requests? Thanks!

bkonyi commented 1 month ago

@bkonyi Was this something you fixed with #3033? Your changes were included in the 2.37.2 release, so I would have expected this to be fixed.

This is probably WAI, but it depends on what package / library is being used to make HTTP requests. Making an HTTP request involves opening a socket, so these SOCKET entries are always expected when HTTP profiling is enabled. However, if the HTTP library being used isn't using dart:io's HttpClient underneath, those requests won't appear in the profiler.

saeedprogrammer commented 2 weeks ago

same issue with dio Screenshot 2024-10-31 at 4 54 11 AM

Flutter 3.24.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision 603104015d (6 days ago) • 2024-10-24 08:01:25 -0700 Engine • revision db49896cf2 Tools • Dart 3.5.4 • DevTools 2.37.3