compute-pressure icon indicating copy to clipboard operation
compute-pressure copied to clipboard

Use-case: Current process contribution

Open alexcyn opened this issue 4 years ago • 2 comments

It would be very helpful to know current browser process (tab) contribution into the total CPU load. For example, I have a powerful machine, I am in the video conference, and also I run chromium build. CPU becomes 100% busy, but it does not make sense to reduce number of video feeds in the conference, as this will not save any visible CPU amount - most CPU is taken by build process. In the video conference code I would analyze current process contribution, and if it is less than lets say 50%, I would avoid any CPU saving activities.

alexcyn avatar May 13 '21 18:05 alexcyn

We have gotten this exact request a few times now from people in the web community and other stakeholders.

CPU stall pressure is currently representing global pressure, which covers many of the initial use-cases, but developers have expressed interest in getting the stall pressure for certain processes of interest, which allows the ability to understand performance impact of changes and doing A/B testing in the wild.

The interesting processes are the following:

  • main thread (measure you own JS impact)
  • compositor thread
  • capture device + thread
  • webrtc thread (maybe the same as capture thread)

Additionally, if the use is decoding using WebCodec on a thread, we might need combined measurements for hardware decoder and thread

kenchris avatar Aug 24 '22 11:08 kenchris

We have started to evaluate a possible implementation on Chromium, this work will continue in Q2.

arskama avatar Apr 24 '24 09:04 arskama