Re:Learning math? Think like a cartoonist
by WanderPanda on Monday April 04, 2022 @01:06PM
(#30909103)
That is exactly what profilers do. Xcode gives you a heatmap of what percentage of the execution time has been spent in a particular function (at least in ~2013 when I used this function the last time)
I think some tool would be interesting that took a code traces or coverage information and generated a view of a code file where each line has a font size dependant on how often that line was executed. Ideally, "important" lines would end up with a large font, while special cases, error checks etc would become "fine print".
I'd be curious if this would help making codebases easier to understand.