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.