From a23a9ec615e160c9ac008f27d554a79255ca27b0 Mon Sep 17 00:00:00 2001 From: bellard Date: Fri, 23 May 2008 09:52:20 +0000 Subject: profiler clean up git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4537 c046a42c-6fe2-441c-8c8c-71466251a162 --- tcg/tcg.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tcg/tcg.h') diff --git a/tcg/tcg.h b/tcg/tcg.h index 1c9b5f1224..b29b54825f 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -236,6 +236,25 @@ struct TCGContext { TCGHelperInfo *helpers; int nb_helpers; int allocated_helpers; + +#ifdef CONFIG_PROFILER + /* profiling info */ + int64_t tb_count1; + int64_t tb_count; + int64_t op_count; /* total insn count */ + int op_count_max; /* max insn per TB */ + int64_t temp_count; + int temp_count_max; + int64_t old_op_count; + int64_t del_op_count; + int64_t code_in_len; + int64_t code_out_len; + int64_t interm_time; + int64_t code_time; + int64_t la_time; + int64_t restore_count; + int64_t restore_time; +#endif }; extern TCGContext tcg_ctx; @@ -281,6 +300,8 @@ TCGv tcg_global_mem_new(TCGType type, int reg, tcg_target_long offset, const char *name); TCGv tcg_temp_new(TCGType type); char *tcg_get_arg_str(TCGContext *s, char *buf, int buf_size, TCGv arg); +void tcg_dump_info(FILE *f, + int (*cpu_fprintf)(FILE *f, const char *fmt, ...)); #define TCG_CT_ALIAS 0x80 #define TCG_CT_IALIAS 0x40 -- cgit v1.2.3