4 ms·
Tangially related; imgur uses (and used) 100% CPU for me; I was never quite sure how or why. The reason I bring it up is because I tried to actually profile it
by dijit 1y ago
Tangially related; imgur uses (and used) 100% CPU for me; I was never quite sure how or why.
The reason I bring it up is because I tried to actually profile it a handful of times, but my C++/Rust/Python knowledge was completely useless in the face of a browser development toolchain.
Did I miss something, or is it not possible to easily see what functions take the meat of javascript execution time?
(it feels really absurd if it's not easy, given that people can essentially serve whatever arbitrary script they want and my computer pretty much has to deal with it if I want to use whatever site)
- cluckindan 1y agoRun the profiler in the browser’s developer tools and you get a flame graph.
- dijit 1y agoI think the issue is/was that the profiler in chrome never ends. I'll just leave it like this (480s of samples..?): https://imgur.com/a/IgaHOdX https://imgur.com/a/IgaHOdX and come back in a few hours.
- cluckindan 1y agoYou have to manually stop it before it collects too much data.
- dijit 1y agoI collected about 400s of data and stopped it. It's been stuck on this page for 18hours now. No increased CPU usage (more than the page spinning at least) and no crazy memory consumption. https://imgur.com/a/aXNtvQ5 https://imgur.com/a/aXNtvQ5 What am I doing wrong?
- cluckindan 1y agoTry with 30s