4 ms·
I wonder what the total energy footprint of zillions of users using this who will never run a profiler. I imagine it's pretty substantial compared to the cost
by nullc 4y ago
I wonder what the total energy footprint of zillions of users using this who will never run a profiler.
I imagine it's pretty substantial compared to the cost of putting a DWARF unwinder in the kernel.
- Gigachad 4y agoEssentially nothing in a world where almost everyone is running 7 electron apps at once and Windows has lost the ability to suspend properly. Especially when all those apps were built on these platforms exactly because of how annoying it is to debug C programs. The total energy usage could even be negative due to this.
- nullc 4y agoIt's a fair point that other things waste unimaginably more, but in terms of debugging -- omitting the frame pointer hasn't been a debugging headache for a long time and even if it were that still wouldn't itself justify running it on every host under the sun including the vast majority that will never have any debugging run on it. I doubt C debugging has had a meaningful role in the use of electron in any case.
- saagarjha 4y agoNot debugging, but profiling. They use similar infrastructure but have different needs when it comes to reliability and overhead.
- rwmj 4y agoYou have to trade that against the large optimizations that were never made because performance analysis of the whole system was essentially unavailable. This is a very new change in Fedora, but hopefully we'll now see lots of big performance improvements in common workloads. The analysis I was doing when writing this blog post was about understanding where 50% of the time of my program was going. The fix literally doubled the speed of the program: https://bugzilla.redhat.com/show_bug.cgi?id=2166686 https://bugzilla.redhat.com/show_bug.cgi?id=2166686
- nullc 4y agoThanks for the concrete example!