"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: How you generated got-update.png? (was: Optimized branch switching?)
To:
Mikolaj Kucharski <mikolaj@kucharski.name>
Cc:
gameoftrees@openbsd.org
Date:
Tue, 13 Sep 2022 16:15:16 +0200

Download raw body.

Thread
On Tue, Sep 13, 2022 at 02:07:14PM +0000, Mikolaj Kucharski wrote:
> Hi Stefan!
> 
> Question unrelated to the thread. How did you generated file attached in
> message quoted below?
> 
> It's this one https://marc.gameoftrees.org/mail/1663067411.14669_0.html
> but there is no attchments in that online version of the email.

See Got's README file where it talks about profiling.
In particular, this command is documented there:

[[[
The gprof2dot program can be used to generate a profile graph:

  $ doas pkg_add gprof2dot graphviz
  $ gprof ~/bin/got-read-pack gmon.out | gprof2dot | dot -T png > profile.png
]]]