Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinier Maas
GHC
Commits
61ba8e20
Commit
61ba8e20
authored
1 year ago
by
BinderDavid
Committed by
Marge Bot
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add section in user guide
parent
146e1c39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/users_guide/runtime_control.rst
+28
-0
28 additions, 0 deletions
docs/users_guide/runtime_control.rst
with
28 additions
and
0 deletions
docs/users_guide/runtime_control.rst
+
28
−
0
View file @
61ba8e20
...
...
@@ -1332,6 +1332,34 @@ the binary eventlog file by using the ``-l`` option.
.. _rts-options-debugging:
RTS options for Haskell program coverage
----------------------------------------
When a program is compiled with the ``-fhpc`` option, then the generated code
is instrumented with instructions which keep track of the executed code during
the runtime of the program. This functionality is implemented by the runtime
system and can be controlled by the following flags.
.. index::
single: RTS options, hpc
.. rts-flag:: --emit-tix-file
:default: enabled
:since: 9.X
By default, the runtime system writes a file ``<program>.tix`` at the end
of execution if the executable is compiled with the ``-fhpc`` option.
This file is not written if the ``--emit-tix-file=false`` option is passed
to the runtime system.
This option is useful if you want to use the functionality provided by the
``Trace.Hpc.Reflect`` module of the ``hpc`` library. These functions allow
to inspect the state of the Tix files during runtime so that the executable
can write them to disk itself.
RTS options for hackers, debuggers, and over-interested souls
-------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment