1 ## Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 # Jagannathan, and Stephen Weeks.
3 # Copyright (C) 1997-2000 NEC Research Institute.
5 # MLton is released under a BSD-style license.
6 # See the file MLton-LICENSE for details.
16 PATH
:= ..
/..
/..
/build
/bin
:$(shell echo
$$PATH)
19 all: profile-time profile-alloc profile-count profile-stack profile-multiple
27 $(mlton
) -profile alloc
$(ALLOC_EX
).sml
29 $(mlprof
) -show-line true
$(ALLOC_EX
) mlmon.out
33 $(mlton
) -profile count
$(COUNT_EX
).sml
35 $(mlprof
) -raw true
-show-line true
$(COUNT_EX
) mlmon.out
37 .PHONE
: profile-multiple
39 $(mlton
) -profile time
$(MULT_EX
).sml
41 $(mlprof
) $(MULT_EX
) mlmon.fib.out
42 $(mlprof
) $(MULT_EX
) mlmon.tak.out
43 $(mlprof
) $(MULT_EX
) mlmon.fib.out mlmon.tak.out mlmon.out
47 $(mlton
) -profile alloc
-profile-stack true
$(ALLOC_EX
).sml
49 $(mlprof
) -call-graph
$(ALLOC_EX
).dot
-show-line true \
51 dot
-Tps
$(ALLOC_EX
).dot
>$(ALLOC_EX
).ps || true
55 $(mlton
) -profile time
$(TIME_EX
).sml
57 $(mlprof
) $(TIME_EX
) mlmon.out
58 $(mlprof
) -raw true
$(TIME_EX
) mlmon.out
59 $(mlprof
) -show-line true
$(TIME_EX
) mlmon.out