Commit Graph

3 Commits

Author SHA1 Message Date
Zoltan Somogyi
47a1a02a92 Add vim modelines to most tools.
tools/add_cont_lines:
tools/appears:
tools/assemble:
tools/avg_frame_size:
tools/build_srcdist:
tools/cleanint:
tools/compare_frame_sizes:
tools/configure_mingw_cross:
tools/cont:
tools/ctor_rep_stats:
tools/cur_param:
tools/dd_speedtest:
tools/divide:
tools/extract_dd_stats:
tools/file_name_translation_stats:
tools/frame_sizes:
tools/gdbrun:
tools/half:
tools/info_stats.awk:
tools/linear:
tools/lmc.in:
tools/mai_stats:
tools/make_arena:
tools/next_param:
tools/not:
tools/optstages:
tools/type_ctor_stats:
    Add vim mode lines. Replace tabs with spaces.
2021-04-27 03:54:27 +10:00
Zoltan Somogyi
463d2cbced Add an overall percentage display, and use a float format for counts
Estimated hours taken: 0.1

tools/ctor_rep_stats:
	Add an overall percentage display, and use a float format for counts
	to avoid clipping at 2^31-1(!).
1999-10-10 02:53:06 +00:00
Zoltan Somogyi
9c5f356c1c If MR_CTOR_REP_STATS is defined, collect statistics about the
Estimated hours taken: 2

runtime/mercury_ho_call.c:
	If MR_CTOR_REP_STATS is defined, collect statistics about the
	type_ctor_reps that the builtin unify, index and compare preds
	are invoked with.

runtime/mercury_wrapper.h:
	If MR_CTOR_REP_STATS is defined, export three arrays for these
	statistics.

runtime/mercury_wrapper.c:
	If MR_CTOR_REP_STATS is defined, define these three arrays,
	and append their contents at the end of execution to the file
	whose name is given by the MR_CTOR_REP_STATS macro.

runtime/mercury_conf_param.h:
	Document MR_CTOR_REP_STATS.

runtime/mercury_type_info.h:
	Document the dependency of MR_CTOR_REP_STATS on UNKNOWN as the
	last alternative in MR_TypeCtorRepresentation.

tools/ctor_rep_stats:
	An awk swcript for analyzing the statistics.
1999-10-10 02:35:46 +00:00