Commit 15522eb5 authored by Aggelos Giantsios's avatar Aggelos Giantsios

Add target for profiling with threadscope

parent 990cb043
......@@ -9,5 +9,6 @@
*.hp
*.prof
*.ps
*.eventlog
orbit
OrbitTests
.PHONY: FORCE clean distclean
COMPILE_OPTS = -Wall -rtsopts -O2 -threaded
orbit: FORCE
ghc $(COMPILE_OPTS) --make Bench.hs -main-is Bench -o orbit
......@@ -12,12 +11,15 @@ prof: distclean
ghc $(COMPILE_OPTS) --make Bench.hs -main-is Bench -o orbit && \
ghc $(COMPILE_OPTS) --make Bench.hs -main-is Bench -o orbit -prof -osuf p_o
threadscope:
ghc $(COMPILE_OPTS) -eventlog --make Bench.hs -main-is Bench -o orbit
prof-results:
hp2ps -e8in -c orbit && \
echo "The memory profiling graph is in orbit.ps"
clean:
$(RM) *.swp *~ *.hi *.o *.dyn_hi *.dyn_o *.p_o *.aux *.hp *.prof
$(RM) *.swp *~ *.hi *.o *.dyn_hi *.dyn_o *.p_o *.aux *.hp *.prof *.eventlog
distclean: clean
$(RM) orbit OrbitTests
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