Commit Graph

2 Commits

Author SHA1 Message Date
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