Skip to content

Performance page slow to load on Linux #6708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aam opened this issue Nov 10, 2023 · 9 comments
Open

Performance page slow to load on Linux #6708

aam opened this issue Nov 10, 2023 · 9 comments
Labels
devtools app performance Related to the performance of the DevTools app (not the Performance page) P3 issues we think are valid but not important screen: performance Issues with the Performance screen

Comments

@aam
Copy link
Member

aam commented Nov 10, 2023

Dev tools peformance tab takes over 10 seconds to load, compared to just 2 seconds for observatory

launch-performance-tab-devtools.webm
observatory-timeline-launch.webm

This is on a simple dart app:

$ cat i1.dart
main() {
  Future.delayed(Duration(seconds :5), () { print('elapsed'); });

launched like

$ out/ReleaseX64/dart  --observe:8080 --disable-service-auth-codes --timeline_streams=all --timeline-recorder=endless --serve-observatory i1.dart

Devtools app launched separately, connected to this dart app paused.

@polina-c polina-c added the screen: performance Issues with the Performance screen label Nov 17, 2023
@polina-c
Copy link
Contributor

@kenzieschmoll

@kenzieschmoll kenzieschmoll added the devtools app performance Related to the performance of the DevTools app (not the Performance page) label Nov 17, 2023
@kenzieschmoll kenzieschmoll self-assigned this Nov 17, 2023
@elliette elliette added the P2 important to work on, but not at the top of the work list. label Jul 17, 2024
@kenzieschmoll kenzieschmoll added the product-quality Issues related to product quality. label Jan 23, 2025
@kenzieschmoll kenzieschmoll removed their assignment Feb 14, 2025
@kenzieschmoll
Copy link
Member

@jakemac53 this might be a good one to tackle next while you are looking at performance.

@jakemac53 jakemac53 self-assigned this Feb 14, 2025
@jakemac53
Copy link
Contributor

It looks to me like this is resolved now - I did notice however that if the app is paused, we will hang forever on this page (with a working spinner).

Most of the time seems to be spent inside of base64.decode today and we can't really fix that, but it is already being split up into a lot of small chunks of work.

@jakemac53
Copy link
Contributor

Here is what I see using the same example app today:

Screen.Recording.2025-02-14.at.12.14.17.PM.mov

@kenzieschmoll
Copy link
Member

It looks to me like this is resolved now - I did notice however that if the app is paused, we will hang forever on this page (with a working spinner).

@bkonyi is it expected that the VM service calls for the performance page (getPerfettoVmTimeline, listening to events on the Extension stream, etc.) would hang for a paused app?

@kenzieschmoll
Copy link
Member

#9162 fixes the hang issue @jakemac53 described here.

@aam do you have a reliable repro for the slow load? I followed your repro steps above but opening the performance page loads quickly for me. I am on a Mac. From your SDK path it looks like you may be using Linux?

foo.dart

cat foo.dart 
main() {
  Future.delayed(Duration(seconds :5), () { print('elapsed'); });
}%      
xcodebuild/ReleaseARM64/dart --observe:8080 --disable-service-auth-codes --timeline_streams=all --timeline-recorder=endless --serve-observatory foo.dart

Open the printed DevTools URL --> navigate to the performance page --> page loads quickly.

@aam
Copy link
Member Author

aam commented May 1, 2025

do you have a reliable repro for the slow load? I

Yes, simple dart --observe hello.dart on my machine consistently takes few seconds from opening the browser with the link before browser page is populated with some content.
Observatory on the other land is loaded immediately.

@kenzieschmoll
Copy link
Member

@aam What machine do you have? I'm wondering if this is due to OS or architecture differences. AFAIK @jakemac53, @bkonyi, and I are all using MacOS and none of us can reproduce.

@aam
Copy link
Member Author

aam commented May 1, 2025

@aam What machine do you have? I'm wondering if this is due to OS or architecture differences.

it's a glinux.

@kenzieschmoll kenzieschmoll changed the title Performance tab in DevTools takes 5x longer to show up compared to Timeline view in Observatory Performance page slow to load on Linux May 1, 2025
@kenzieschmoll kenzieschmoll added P3 issues we think are valid but not important and removed P2 important to work on, but not at the top of the work list. product-quality Issues related to product quality. labels May 1, 2025
@kenzieschmoll kenzieschmoll removed their assignment May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtools app performance Related to the performance of the DevTools app (not the Performance page) P3 issues we think are valid but not important screen: performance Issues with the Performance screen
Projects
None yet
Development

No branches or pull requests

5 participants