update instructions to work better

This commit is contained in:
Joey Hess 2016-12-08 16:55:40 -04:00
parent b8fea9f08d
commit 0288e934cc
No known key found for this signature in database
GPG key ID: C910D9222512E3C7

View file

@ -20,11 +20,11 @@ git-annex will continue to work.
For the really tricky memory leaks, here's how to make a profiling build of For the really tricky memory leaks, here's how to make a profiling build of
git-annex. git-annex.
1. `cabal configure` with only the flags you really need 1. `cabal configure --enable-profiling`
2. `cabal build --ghc-options="-prof -auto-all -caf-all"`
This will probably fail due to some missing profiling libraries. This will probably fail due to some missing profiling libraries.
You have to get the profiling versions of all needed haskell libraries You have to get the profiling versions of all needed haskell libraries
installed somehow. installed somehow.
2. `cabal build`
3. Run git-annex with the special flags `+RTS -hc -p` 3. Run git-annex with the special flags `+RTS -hc -p`
4. Reproduce the memory leak problem. 4. Reproduce the memory leak problem.
5. If the assistant was run, stop it. 5. If the assistant was run, stop it.