Open Bug 1657176 Opened 5 years ago Updated 1 year ago

The sourcemap worker uses too much CPU

Categories

(DevTools :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: julienw, Unassigned)

References

(Blocks 1 open bug)

Details

I realized today that the sourcemap worker takes a lot of CPU on my computer. This is visible using about:performance.
This happens even though I don't use the devtools window nor the website (of course the devtools are opened).

This was happening on the profiler development server for example.

I believe the worker should be more peaceful, notably when the debugged tab isn't in foreground.

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(odvarko)

Julien, can you share the page you used (assuming a page with rather bigger source maps) when noticing the data in about:performance?

Honza

Flags: needinfo?(odvarko) → needinfo?(felash)

I noticed this on the profiler server, especially on the development server but I just looked at the production server and this seems to happen there too:

  1. go to https://profiler.firefox.com
  2. check about:performance => notice that no worker dedicated to source maps is present
  3. open the devtools (console panel or debugger panel, where source maps are needed)
  4. check about:performance again => notice that the worker dedicated to source maps is present and takes quite some time

If you open more tabs you'll notice that there are several instances of that worker, even if the tab is in background and doesn't do much.

Flags: needinfo?(felash)
Severity: -- → S3
Has STR: --- → yes
Priority: -- → P3

I've seen a similar issue when I was opening the devtools on a MDN page.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Performance Tools (Profiler/Timeline)
Component: Performance Tools (Profiler/Timeline) → General
You need to log in before you can comment on or make changes to this bug.