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
Pale Moon guru
Pale Moon guru
Posts: 37756
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: How to debug slowness

Unread 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.
"A dead end street is a place to turn around and go into a new direction" - 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
Lunatic
Lunatic
Posts: 377
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: How to debug slowness

Unread 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
Pale Moon guru
Pale Moon guru
Posts: 37756
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: How to debug slowness

Unread 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...
"A dead end street is a place to turn around and go into a new direction" - 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

Unread 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?