diff options
author | sliquister <valentin.gatienbaron@gmail.com> | 2017-06-09 07:29:21 -0400 |
---|---|---|
committer | Mark Shinwell <mshinwell@gmail.com> | 2017-06-09 12:29:21 +0100 |
commit | 3f76c0525b15fcb84336e8bb9de1c232ac3fa66b (patch) | |
tree | 152ea2688e6c6d23745278ff1f1c495bcc4bfeaf /tools | |
parent | f4d9001c194d64390399293229a116ccb6ecce0e (diff) | |
download | ocaml-3f76c0525b15fcb84336e8bb9de1c232ac3fa66b.tar.gz |
generalize -dtimings to show allocation, top heap size (#1152)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 4 | ||||
-rw-r--r-- | tools/ocamlcp.ml | 1 | ||||
-rw-r--r-- | tools/ocamloptp.ml | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile index f640d7fd57..92d9e99e78 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -133,8 +133,8 @@ CSLPROF_IMPORTS=misc.cmo config.cmo identifiable.cmo numbers.cmo \ $(call byte_and_opt,ocamlprof,$(CSLPROF_IMPORTS) profiling.cmo $(CSLPROF),) -ocamlcp_cmos = misc.cmo warnings.cmo config.cmo identifiable.cmo numbers.cmo \ - arg_helper.cmo clflags.cmo main_args.cmo +ocamlcp_cmos = misc.cmo profile.cmo warnings.cmo config.cmo identifiable.cmo \ + numbers.cmo arg_helper.cmo clflags.cmo main_args.cmo $(call byte_and_opt,ocamlcp,$(ocamlcp_cmos) ocamlcp.cmo,) $(call byte_and_opt,ocamloptp,$(ocamlcp_cmos) ocamloptp.cmo,) diff --git a/tools/ocamlcp.ml b/tools/ocamlcp.ml index 278952f75e..0aeaf2ce1b 100644 --- a/tools/ocamlcp.ml +++ b/tools/ocamlcp.ml @@ -126,6 +126,7 @@ module Options = Main_args.Make_bytecomp_options (struct let _dflambda = option "-dflambda" let _dinstr = option "-dinstr" let _dtimings = option "-dtimings" + let _dprofile = option "-dprofile" let _args = Arg.read_arg let _args0 = Arg.read_arg0 let anonymous = process_file diff --git a/tools/ocamloptp.ml b/tools/ocamloptp.ml index 895031931a..1253f89edc 100644 --- a/tools/ocamloptp.ml +++ b/tools/ocamloptp.ml @@ -174,6 +174,7 @@ module Options = Main_args.Make_optcomp_options (struct let _dstartup = option "-dstartup" let _dinterval = option "-dinterval" let _dtimings = option "-dtimings" + let _dprofile = option "-dprofile" let _opaque = option "-opaque" let _args = Arg.read_arg |