perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

Loading trace file with local TP, but the webpage response is slow and not smooth

Open fengzikuaipao opened this issue 1 year ago • 6 comments

hi, I am using local acceleration mode in a Windows PC to process a Linux system trace file with a size of approximately 600M,like:

Image

However, after opening the Perfetto UI, the loading and usage are slow, affecting the operation. And the same time, the cpu and memory usage of the PC are still acceptable:

Image Image

What is the reason for this and how can we solve this situation?

fengzikuaipao avatar May 22 '25 06:05 fengzikuaipao

Couple of things:

  1. can you please link the trace demoing this problem?
  2. can you try using autopush UI (click on flags on the sidebar, then release channel then autopush) and then retry. Does it repro there?
  3. finally on autopush, this trace should be loadable without the native accelerator. Does it repro if you dont use it and just load the trace directly?

LalitMaganti avatar May 22 '25 09:05 LalitMaganti

The screenshot file of the trace is as follows, but unfortunately, the original file cannot be provided.

Image When I use the stable version to load it by browser without the native accelerator,the error is:

Image

And I follow your advice to load it in autopush version, the browser load the trace finally and the memory usage changes like:

from Image to

Image but when I use WASD keys or mouse wheel,the reponse is slow too.

Image

I can imagine that the trace file loaded in the browser runs slowly, maybe the the trace file is too big or browser performance is limited. But why does the native acceleration mode also response slowly when I change another PC with 128G memory?

fengzikuaipao avatar May 23 '25 05:05 fengzikuaipao

Sorry but without the trace this issue is impossible to debug. If you don't want to share publicly, please send to [email protected] using Google Drive or some other file hosting service

If you cannot share, there's not much we can do here.

LalitMaganti avatar May 23 '25 09:05 LalitMaganti

Okay, thank you very much. I will try to prepare a simulation trace file without sensitive information later.

fengzikuaipao avatar May 23 '25 10:05 fengzikuaipao

It's hard to tell exactly what the problem is without more information, but something you can try quickly is enabling 'Virtual Track Scrolling' (https://ui.perfetto.dev/#!/flags/virtualTrackScrolling).

This is experimental so YMMV, but it can speed the UI up a lot.

stevegolton avatar May 23 '25 11:05 stevegolton

Closing for now, feel free to re-open if the flag doesn't help.

stevegolton avatar Jun 03 '25 10:06 stevegolton