haskell-code-spot/README.md
2020-06-14 20:29:32 +02:00

1.8 KiB

Haskell Code Spot

Visual tool to spot odd runtime behaviour of Haskell programs. Keywords: data scientist, GHC eventlog, UI experiments, creative/live coding

Learn these for coding

Quick Start Guide

In one terminal:

$ cd server && stack build && stack exec code-spot-server

In another terminal:

$ cd src && npm install && npm run dev

Now open http://localhost:5000/ in your browser!

You will see a visualisation of data/grin.eventlog (change in client/src/App.svelte).

How to build your eventlog

If stack project is used, profiling must be enabled. After compiled with profiling, one need to run it with RTS options plh.

stack build --profile --executable-profiling --library-profiling
stack exec --profile EXECUTABLE -- ARGUMENTS +RTS -p -l -h

Previews:

Heap Live

Heap Size

Cost Center based stack trace in step-by-step style.