openage icon indicating copy to clipboard operation
openage copied to clipboard

Flamegraph support

Open TheJJ opened this issue 7 years ago • 2 comments

Our tests, demos and the game should have an easy way to generate flamegraphs.

Ideally, this would be integrated into the main python launcher, which is openage/__main__.py and the argparsing from there.

We should not add flamegraph as a dependency, but rather add a convenient (and documemented) way to run it.

TheJJ avatar Feb 19 '17 15:02 TheJJ

Hello,

Things have gotten a lot easier wrt to flamegraphs since 2017: wouldn't tools like KDAB/hotspot, KDE/heaptrack (and possibly KernelShark) be enough for what you had in mind?

The big pro is that they are easy to use and require no code instrumentation or project-specific documentation. The big con is that they are Linux-only.

Obviously, they also all target common metrics (CPU, RAM…), so that wouldn't help for niche metrics.

Arkanosis avatar Aug 11 '22 10:08 Arkanosis

@Arkanosis Thanks :) I think we can try and check them out. Since the flamegraphs should be an optional dependency anyway, it'd be okay that they have some constraints.

heinezen avatar Aug 11 '22 18:08 heinezen