It is client side library for live eventlog profiling toolchain. The library collects data from eventlog and sends it via UDP or TCP to remote profiling tool.
The repo is related to the Haskell Summer of Code 2016 project. The tool is currently requires hacked RTS (see below) to operate properly.
-
You need a patched GHC 8.1 from the repo until the project is merged into GHC master.
-
Clone and boot the repo:
git clone https://github.com/NCrashed/live-profile-monitor.git --recursive
cd live-profile-monitor
cd ghc-events && git checkout incremental && cd ..
- Initalize cabal environment (note, you need
Cabal
andcabal-install
not lower than1.24.0.0
version):
cabal new-configure --enable-tests
- Compile:
cabal new-build
- Test:
./tests.sh
- Tell stack to use system wide GHC:
stack --compiler=ghc-8.1 install
- Test:
stack build --test --compiler=ghc-8.1 --no-run-tests
stack test live-profile-monitor:test-monitor --compiler=ghc-8.1 --test-arguments="./.stack-work/dist/*/Cabal-*/build/test-leech/test-leech"
ghc-events inc test.eventlog