Hey folks,
I’m wondering why the DOM Nodes section shows a ton of nodes in the Performance monitor, even when the webpage being monitored doesn’t have any.
If you open about:blank, then open the tool, you’ll notice of nodes getting displayed, even if the page only has 3 (html, head, body). In my case, the graph shows around 27500 nodes.
If I then add more with document.createElement(‘div’), they get counted by the tool correctly.
Any insights in how this tool works?
Thanks,
Patrick
--
You received this message because you are subscribed to the Google Groups "devtools-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devtools-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/devtools-dev/PA4PR83MB05126EF1A8F7A92A4408E55FF7BE9%40PA4PR83MB0512.EURPRD83.prod.outlook.com.
Oh interesting, thank you. It does seem to play a role indeed. If I start a new instance of the browser, with just about:blank, I get way fewer nodes.
I’m still confused though. Some fluctuations in the graph don’t seem to be related to tabs I open. In fact, if I then start opening new tabs, the graph doesn’t show new nodes from them.
I’m not seeing this at all on my end. Adding/removing new tab pages does not change anything for me.
Resizing the browser window does seem to have some impact though, weirdly enough.
The blue area is when I had only 1 tab (about:blank), and was resizing the browser window by dragging.
The red area is when I created a bunch of new tab pages, and then closed them all.
Could this be a mac vs. windows issue? Or perhaps you have a setting I don’t.
From: Yang Guo <yan...@chromium.org>
Sent: Wednesday, October 20, 2021 11:27 AM
To: Patrick Brosset <Patrick...@microsoft.com>
Cc: 'nor...@skia.org' via devtools-dev <devtoo...@chromium.org>
Subject: Re: [EXTERNAL] Re: [devtools-dev] Question about the DOM Nodes graph in the Performance monitor tool
Opening or reloading the new tab page consistently adds about 3k nodes. If I close the tabs except for the one to which DevTools is attached, the number falls down again, likely due to delayed GC.
To unsubscribe from this group and stop receiving emails from it, send an email to devtools-dev+unsubscribe@chromium.org.
Alex: Yeah, I would expect text nodes to count as well, and internal documents too, so I’m not really surprised that about:blank would show more than 3 DOM nodes.
Yang: I checked, and I only have the Microsoft Office extension installed. I also tried in incognito mode and had the same results. I also downloaded a fresh version of chromium with no extensions, and had the same thing.
To unsubscribe from this group and stop receiving emails from it, send an email to devtools-dev...@chromium.org.