Add profiling dependencies note
authorGuido Trotter <ultrotter@google.com>
Wed, 12 Dec 2012 12:43:17 +0000 (04:43 -0800)
committerGuido Trotter <ultrotter@google.com>
Fri, 14 Dec 2012 13:11:13 +0000 (14:11 +0100)
As discussed on the list, these are needed to do a make hs-prof.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

doc/devnotes.rst

index 7721ecd..15dbc7d 100644 (file)
@@ -127,6 +127,13 @@ what the splices are converted to. This can be done via::
 
   $ make HEXTRA="-ddump-splices"
 
+To build profiling code you must install the ``ghc-prof`` (or
+``gch6-prof``) package, and all the relevant libraries with their
+``-prof`` counterparts. If installing libraries through cabal the config
+file should include ``library-profiling: True`` or the ``-p`` flag
+should be used. Any library already installed can be updated by passing
+``--reinstall`` as well.
+
 Due to the way TemplateHaskell works, it's not straightforward to
 build profiling code. The recommended way is to run ``make hs-prof``,
 or alternatively the manual sequence is::