diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2017-03-23 21:03:40 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-03-24 10:14:26 -0400 |
commit | ee7241cfde455ab6731b9ce81b36247f082a1342 (patch) | |
tree | 46a1ca9b290adfb4e5d0df9847534dc5068bbe60 /docs | |
parent | caf94b062a0e37ffa7048e51447fc9486b658917 (diff) | |
download | haskell-ee7241cfde455ab6731b9ce81b36247f082a1342.tar.gz |
Document hithertoo undocumented HPCTIXFILE option.
Test Plan: none
Reviewers: bgamari, austin, dfeuer
Reviewed By: bgamari, dfeuer
Subscribers: dfeuer, rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3357
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/profiling.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/users_guide/profiling.rst b/docs/users_guide/profiling.rst index 832464e8b0..d035cc56d4 100644 --- a/docs/users_guide/profiling.rst +++ b/docs/users_guide/profiling.rst @@ -1292,7 +1292,8 @@ case :file:`Recip.tix`, which contains the coverage data for this run of the program. The program may be run multiple times (e.g. with different test data), and the coverage data from the separate runs is accumulated in the ``.tix`` file. To reset the coverage data and start again, just -remove the ``.tix`` file. +remove the ``.tix`` file. You can control where the ``.tix`` file +is generated using the environment variable :envvar:`HPCTIXFILE`. Having run the program, we can generate a textual summary of coverage: @@ -1532,8 +1533,10 @@ Caveats and Shortcomings of Haskell Program Coverage HPC does not attempt to lock the ``.tix`` file, so multiple concurrently running binaries in the same directory will exhibit a race condition. -There is no way to change the name of the ``.tix`` file generated, apart -from renaming the binary. HPC does not work with GHCi. +At compile time, there is no way to change the name of the ``.tix`` file generated; +at runtime, the name of the generated ``.tix`` file can be changed +using :envvar:`HPCTIXFILE`; the name of the ``.tix`` file +will also change if you rename the binary. HPC does not work with GHCi. .. _ticky-ticky: |