From d6b5da24afa124b7a2ddbe15682415da4a5435d2 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Wed, 12 Dec 2012 04:43:17 -0800 Subject: [PATCH] Add profiling dependencies note 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/devnotes.rst b/doc/devnotes.rst index 7721ecd88..15dbc7d7e 100644 --- a/doc/devnotes.rst +++ b/doc/devnotes.rst @@ -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:: -- GitLab