File: time_profiling_the_assistant.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (19 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From the repo (commit ecc548) I built git-annex with stack issuing this command:

    stack install --executable-profiling --library-profiling --ghc-options="-rtsopts -auto-all"

then I run the output executable with +RTS -p like

    git-annex version +RTS -p

and obtain the corresponding git-annex.prof with the time profile.

What I am unable to do is to get a time profile of the assistant: if I kill it the git-annex.prof file is empty, same happens if I stop the assistant with

    git-annex assistant --stop

So... is there another way to time-profile a git-annex command? Am I missing something in this procedure?

Any advice is welcome :)

-- zarel