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

Add target for profiling with threadscope

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