Commit f9693b83 authored by Simon Peyton Jones's avatar Simon Peyton Jones Committed by Ben Gamari

Edit Debugging/TickyTicky

parent a0f97417
...@@ -97,7 +97,15 @@ Two flags enable LNE and dynamically allocated thunks to be tracked by name-spec ...@@ -97,7 +97,15 @@ Two flags enable LNE and dynamically allocated thunks to be tracked by name-spec
## Generating the ticky report ## Generating the ticky report
Any GHC executable linked with `-rtsopts` will generate a ticky-ticky profiling report if provided the `-r` RTS option. This report includes all global counters as well as the name-specific counters for those names with at least one interesting counter value. If a named thing was never allocated and (hence) never entered, its counters will not be in the ticky report. Any GHC executable linked with `-rtsopts` will generate a ticky-ticky profiling report if provided the `-r` RTS option. Thus
```wiki
$ ghc -ticky -rtsopts Main.hs -o main
$ ./main +RTS -rmain.ticky
```
This report includes all global counters as well as the name-specific counters for those names with at least one interesting counter value. If a named thing was never allocated and (hence) never entered, its counters will not be in the ticky report.
Below is an excerpt from a ticky report. The executable was compiled with all of the extensions above. Below is an excerpt from a ticky report. The executable was compiled with all of the extensions above.
......
...@@ -73,7 +73,12 @@ Two flags enable LNE and dynamically allocated thunks to be tracked by name-spec ...@@ -73,7 +73,12 @@ Two flags enable LNE and dynamically allocated thunks to be tracked by name-spec
== Generating the ticky report == == Generating the ticky report ==
Any GHC executable linked with `-rtsopts` will generate a ticky-ticky profiling report if provided the `-r` RTS option. This report includes all global counters as well as the name-specific counters for those names with at least one interesting counter value. If a named thing was never allocated and (hence) never entered, its counters will not be in the ticky report. Any GHC executable linked with `-rtsopts` will generate a ticky-ticky profiling report if provided the `-r` RTS option. Thus
{{{
$ ghc -ticky -rtsopts Main.hs -o main
$ ./main +RTS -rmain.ticky
}}}
This report includes all global counters as well as the name-specific counters for those names with at least one interesting counter value. If a named thing was never allocated and (hence) never entered, its counters will not be in the ticky report.
Below is an excerpt from a ticky report. The executable was compiled with all of the extensions above. Below is an excerpt from a ticky report. The executable was compiled with all of the extensions above.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment