void xed_print_decode_stats() { //for ILD perf measurements #if defined(XED_ILD) && defined(XED_ILD_ONLY) print_decode_stats_internal(&ild_stats, "ILD"); #else xed_int64_t growth; print_decode_stats_internal(&xed_stats, "XED2"); printf("#Bad times: " XED_FMT_LU "\n", xed_stats.bad_times); printf("#Total input length bytes: " XED_FMT_LU "\n", xed_stats.total_ilen ); printf("#Total output length bytes: " XED_FMT_LU "\n", xed_stats.total_olen ); printf("#Growth bytes: " XED_FMT_LU "\n", xed_stats.total_longer ); printf("#Shrinkage bytes: " XED_FMT_LU "\n", xed_stats.total_shorter ); growth = xed_stats.total_olen - xed_stats.total_ilen; printf("#Growth/Shrinkage bytes: " XED_FMT_LD "\n", growth ); if (xed_stats.total_ilen) { double pct_growth = \ 100.0 * growth / (double) XCAST(xed_stats.total_ilen); printf("#Code size growth percent: %f\n", pct_growth); } #endif //defined(XED_ILD) && defined(XED_ILD_ONLY) }
void xed_print_encode_stats() { print_decode_stats_internal(&xed_enc_stats, "XED3", "encode"); }
void xed_print_decode_stats() { //for ILD perf measurements print_decode_stats_internal(&xed_stats, "XED3", "decode"); }