Comment

Comment by IshKebab

Damn I hate it when you write a whole project and someone comes along and says "this already exists" and you realise how much time you wasted (yeah even if some of it counts towards learning I'd still rather not needlessly repeat other people's work).

Anyway, pprof has a fantastic interactive Flamegraph viewer that lets you narrow down to specific functions. It's really very good, I would use that.

https://github.com/google/pprof

Run `pprof -http=:` on a profile and you get a web interface with the Flamegraph, call graph, line based profiling etc.

It's demonstrated in this video.

https://youtu.be/v6skRrlXsjY

They only show a very simple example and no zooming, but it works very well with huge flamegraphs.

parent IshKebab 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton