From f9693b835984fa5f2652b4d60d6ced2b1219e53d Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Tue, 2 Apr 2013 04:01:44 -0400 Subject: [PATCH] Edit Debugging/TickyTicky --- debugging/ticky-ticky.md | 10 +++++++++- debugging/ticky-ticky.trac | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/debugging/ticky-ticky.md b/debugging/ticky-ticky.md index ab7e1b08a..43f622a86 100644 --- a/debugging/ticky-ticky.md +++ b/debugging/ticky-ticky.md @@ -97,7 +97,15 @@ Two flags enable LNE and dynamically allocated thunks to be tracked by name-spec ## 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. diff --git a/debugging/ticky-ticky.trac b/debugging/ticky-ticky.trac index 1a1306710..27400d233 100644 --- a/debugging/ticky-ticky.trac +++ b/debugging/ticky-ticky.trac @@ -73,7 +73,12 @@ Two flags enable LNE and dynamically allocated thunks to be tracked by name-spec == 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. -- GitLab