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

Edit Debugging/TickyTicky

parent 0e7af48f
TODO document each active counter, especially regarding its accuracy.
## Basic Idea and Quickstart Guide
# Ticky-ticky profiling
Ticky-ticky profiling adds counters to every STG function. It's very low-level, but it really tells you what is going on:
......@@ -85,7 +85,7 @@ Here is what I do:
- If your change is small, the two tables will look pretty similar, so you can just run your eye down until you find a difference. Then go look in `x2n1.dump` for the unique (e.g `r6vW`) in the `STG Name`. Look initially in the `STG Syntax` dump, but having found the right place I generally back up to the `Tidy Core` section which is far more readable.
- Now you can compare the two secitons of Core code.
- Now you can compare the two sections of Core code.
The good thing is that ticky-ticky is guaranteed to be non-invasive. It generates a bit of extra memory traffic for the instrumentation, but that's all.
......
......@@ -2,7 +2,7 @@
TODO document each active counter, especially regarding its accuracy.
== Basic Idea and Quickstart Guide ==
= Ticky-ticky profiling =
Ticky-ticky profiling adds counters to every STG function. It's very low-level, but it really tells you what is going on:
......@@ -75,7 +75,7 @@ $ x2n1 +RTS -rx2n1.ticky
* If your change is small, the two tables will look pretty similar, so you can just run your eye down until you find a difference. Then go look in `x2n1.dump` for the unique (e.g `r6vW`) in the `STG Name`. Look initially in the `STG Syntax` dump, but having found the right place I generally back up to the `Tidy Core` section which is far more readable.
* Now you can compare the two secitons of Core code.
* Now you can compare the two sections of Core code.
The good thing is that ticky-ticky is guaranteed to be non-invasive. It generates a bit of extra memory traffic for the instrumentation, but that's all.
......
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