How to debug slowness

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
Moonchild
Project founder
Project founder
Posts: 38828
Joined: 2011-08-28, 17:27
Location: Sweden

Re: How to debug slowness

Post by Moonchild » 2024-06-01, 22:41

UCyborg wrote:
2024-06-01, 21:56
That unloads it, I meant something in the style of Edge's sleeping tabs. They wouldn't need to be reloaded when switching back to a sleeping tab. So a bit like suspending the browser process, just on a tab basis.
That's not possible for us. Edge can do this by juggling their content processes, but tabs in Pale Moon are all part of the same application process, which cannot be put "to sleep" without impacting all tabs.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
UCyborg
Astronaut
Astronaut
Posts: 717
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: How to debug slowness

Post by UCyborg » 2024-06-02, 07:06

I assumed you could tell tabs' contexts apart somehow and just skip their processing if desired.

User avatar
Moonchild
Project founder
Project founder
Posts: 38828
Joined: 2011-08-28, 17:27
Location: Sweden

Re: How to debug slowness

Post by Moonchild » 2024-06-02, 10:17

In a limited fashion, we can. And we already do so, e.g. by clamping timers for background tabs. But as I already hinted at before, modern web "features" detach processing from specific documents/contexts which, by necessity, use pool structures. So, while potentially an option, it will not be anywhere near as trivial as a separate process would make it.

Also, at most this would be beneficial for memory use the way Edge does it, and not in terms of processing speed...
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

xtal256
Moon lover
Moon lover
Posts: 95
Joined: 2014-06-22, 00:32
Location: here

Re: How to debug slowness

Post by xtal256 » 2024-06-21, 06:02

It sounds like this ghost window problem is the main cause of slowness, but I still like to know more about what's going on "under the hood" when a problem occurs. When the Pale Moon process goes to 100% I often bring up Process Hacker / System Informer and look at the stack trace, but all that can really tell me is what module the execution is currently in. Would I be able to download debugging symbols to see the exact function calls, or would I also need a debug build for that?