profiler.h File Reference

Contains defines and functions used for profiling Covered commands. More...

#include "defines.h"
#include "genprof.h"
#include "util.h"

Go to the source code of this file.

Defines

#define PROFILE(index)   int foobar
#define PROFILE_START(index)
#define PROFILE_END   foobar = 0
#define MALLOC_CALL(index)
#define FREE_CALL(index)

Functions

void profiler_set_mode (bool value)
 Sets the current profiling mode to the given value.
void profiler_set_filename (const char *fname)
 Sets the profiling output file to the given value.
void profiler_enter (unsigned int index)
 Function to be called whenever a new function is entered.
void profiler_exit (unsigned int index)
 Function to be called whenever a timed function is exited.
void profiler_report ()
 Output profiler report.

Variables

bool profiling_mode

Detailed Description

Contains defines and functions used for profiling Covered commands.

Author:
Trevor Williams (phase1geo@gmail.com)
Date:
12/10/2007

Define Documentation

#define FREE_CALL ( index   ) 

Referenced by free_safe1(), and free_safe2().

#define MALLOC_CALL ( index   ) 
#define PROFILE ( index   )     int foobar

Referenced by add_sym_values_to_sim(), arc_add(), arc_are_any_excluded(), arc_create(), arc_db_merge(), arc_db_read(), arc_db_write(), arc_dealloc(), arc_find_arc(), arc_find_arc_by_exclusion_id(), arc_find_from_state(), arc_find_to_state(), arc_get_states(), arc_get_stats(), arc_get_transitions(), arc_merge(), arc_state_hits(), arc_transition_excluded(), arc_transition_hits(), args_db_read(), assertion_collect(), assertion_display_funit_summary(), assertion_display_instance_summary(), assertion_display_verbose(), assertion_funit_summary(), assertion_funit_verbose(), assertion_get_coverage(), assertion_get_funit_summary(), assertion_get_stats(), assertion_instance_summary(), assertion_instance_verbose(), assertion_parse(), assertion_parse_attr(), assertion_report(), attribute_create(), attribute_dealloc(), attribute_parse(), bind_add(), bind_append_fsm_expr(), bind_dealloc(), bind_find_sig_name(), bind_param(), bind_perform(), bind_remove(), bind_signal(), bind_task_function_namedblock(), bind_task_function_ports(), calc_miss_percent(), check_option_value(), codegen_create_expr(), codegen_create_expr_helper(), codegen_gen_expr(), combination_calc_depth(), combination_collect(), combination_display_funit_summary(), combination_display_instance_summary(), combination_display_verbose(), combination_does_multi_exp_need_ul(), combination_draw_centered_line(), combination_draw_line(), combination_event(), combination_funit_summary(), combination_funit_verbose(), combination_get_coverage(), combination_get_exclude_list(), combination_get_expression(), combination_get_funit_summary(), combination_get_inst_summary(), combination_get_missed_expr(), combination_get_stats(), combination_get_tree_stats(), combination_instance_summary(), combination_instance_verbose(), combination_is_expr_multi_node(), combination_list_missed(), combination_multi_expr_calc(), combination_multi_expr_output(), combination_multi_expr_output_length(), combination_multi_var_exprs(), combination_multi_vars(), combination_output_expr(), combination_parenthesize(), combination_prep_line(), combination_report(), combination_reset_counted_expr_tree(), combination_reset_counted_exprs(), combination_two_vars(), combination_unary(), combination_underline(), combination_underline_tree(), command_exclude(), command_merge(), command_rank(), command_report(), command_score(), convert_file_to_module(), covered_cb_error_handler(), covered_create_value_change_cb(), covered_end_of_sim(), covered_parse_instance(), covered_parse_signals(), covered_parse_task_func(), covered_sim_calltf(), covered_value_change_bin(), covered_value_change_real(), db_add_declared_param(), db_add_defparam(), db_add_enum(), db_add_expression(), db_add_file_version(), db_add_function_task_namedblock(), db_add_gen_item_block(), db_add_instance(), db_add_module(), db_add_override_param(), db_add_signal(), db_add_statement(), db_add_typedef(), db_add_vector_param(), db_assign_symbol(), db_bind_expr_tree(), db_check_dumpfile_scopes(), db_check_for_top_module(), db_close(), db_connect_statement_false(), db_connect_statement_true(), db_create(), db_create_attr_param(), db_create_expr_from_static(), db_create_expression(), db_create_sensitivity_list(), db_create_statement(), db_create_unnamed_scope(), db_curr_signal_count(), db_do_timestep(), db_end_enum_list(), db_end_function_task_namedblock(), db_end_module(), db_find_gen_item(), db_find_signal(), db_find_typedef(), db_gen_curr_inst_scope(), db_gen_exclusion_id(), db_gen_item_connect(), db_gen_item_connect_false(), db_gen_item_connect_true(), db_get_curr_funit(), db_get_curr_gen_block(), db_get_exclusion_id_size(), db_is_unnamed_scope(), db_merge_instance_trees(), db_output_dumpvars(), db_parallelize_statement(), db_parse_attribute(), db_read(), db_remove_statement(), db_remove_statement_from_current_funit(), db_remove_stmt_blks_calling_statement(), db_scale_to_precision(), db_set_symbol_char(), db_set_symbol_string(), db_set_timescale(), db_set_vcd_scope(), db_statement_connect(), db_sync_curr_instance(), db_vcd_upscope(), db_write(), defparam_add(), defparam_dealloc(), directory_exists(), directory_load(), enumerate_add_item(), enumerate_dealloc(), enumerate_dealloc_list(), enumerate_end_list(), enumerate_resolve(), exclude_add_exclude_reason(), exclude_apply_exclusions(), exclude_arc_assign_and_recalc(), exclude_assert_from_id(), exclude_db_merge(), exclude_db_read(), exclude_db_write(), exclude_expr_assign_and_recalc(), exclude_expr_from_id(), exclude_find_exclude_reason(), exclude_find_expression(), exclude_find_fsm_arc(), exclude_find_signal(), exclude_format_reason(), exclude_fsm_from_id(), exclude_get_message(), exclude_handle_exclude_reason(), exclude_is_assert_excluded(), exclude_is_comb_excluded(), exclude_is_fsm_excluded(), exclude_is_line_excluded(), exclude_is_toggle_excluded(), exclude_line_from_id(), exclude_memory_from_id(), exclude_merge(), exclude_print_exclusion(), exclude_remove_exclude_reason(), exclude_resolve_reason(), exclude_set_assert_exclude(), exclude_set_comb_exclude(), exclude_set_fsm_exclude(), exclude_set_line_exclude(), exclude_set_toggle_exclude(), exclude_sig_assign_and_recalc(), exclude_toggle_from_id(), exp_link_add(), exp_link_delete_list(), exp_link_find(), exp_link_find_by_pos(), exp_link_remove(), expression_assign(), expression_assign_expr_ids(), expression_contains_expr_calling_stmt(), expression_create(), expression_create_nba(), expression_create_tmp_vecs(), expression_create_value(), expression_db_merge(), expression_db_read(), expression_db_write(), expression_db_write_tree(), expression_dealloc(), expression_find_expr(), expression_find_params(), expression_find_rhs_sigs(), expression_find_uline_id(), expression_get_curr_dimension(), expression_get_first_line_expr(), expression_get_id(), expression_get_last_line_expr(), expression_get_root_statement(), expression_is_assigned(), expression_is_bit_select(), expression_is_in_rassign(), expression_is_last_select(), expression_is_nba_lhs(), expression_is_static_only_helper(), expression_merge(), expression_op_func__add(), expression_op_func__add_a(), expression_op_func__aedge(), expression_op_func__and(), expression_op_func__and_a(), expression_op_func__arshift(), expression_op_func__arshift_a(), expression_op_func__assign(), expression_op_func__bitstoreal(), expression_op_func__bitstoshortreal(), expression_op_func__case(), expression_op_func__casex(), expression_op_func__casez(), expression_op_func__ceq(), expression_op_func__clog2(), expression_op_func__cne(), expression_op_func__concat(), expression_op_func__cond(), expression_op_func__cond_sel(), expression_op_func__default(), expression_op_func__delay(), expression_op_func__dim(), expression_op_func__disable(), expression_op_func__divide(), expression_op_func__divide_a(), expression_op_func__dly_assign(), expression_op_func__dly_op(), expression_op_func__eor(), expression_op_func__eq(), expression_op_func__expand(), expression_op_func__exponent(), expression_op_func__finish(), expression_op_func__fork(), expression_op_func__func_call(), expression_op_func__ge(), expression_op_func__gt(), expression_op_func__idec(), expression_op_func__iinc(), expression_op_func__itor(), expression_op_func__join(), expression_op_func__land(), expression_op_func__le(), expression_op_func__list(), expression_op_func__lor(), expression_op_func__lshift(), expression_op_func__lshift_a(), expression_op_func__lt(), expression_op_func__mbit(), expression_op_func__mbit_neg(), expression_op_func__mbit_pos(), expression_op_func__mod(), expression_op_func__mod_a(), expression_op_func__multiply(), expression_op_func__multiply_a(), expression_op_func__nand(), expression_op_func__nb_call(), expression_op_func__ne(), expression_op_func__nedge(), expression_op_func__negate(), expression_op_func__nor(), expression_op_func__null(), expression_op_func__nxor(), expression_op_func__or(), expression_op_func__or_a(), expression_op_func__passign(), expression_op_func__pdec(), expression_op_func__pedge(), expression_op_func__pinc(), expression_op_func__random(), expression_op_func__realtime(), expression_op_func__realtobits(), expression_op_func__repeat(), expression_op_func__repeat_dly(), expression_op_func__rshift(), expression_op_func__rshift_a(), expression_op_func__rtoi(), expression_op_func__sassign(), expression_op_func__sbit(), expression_op_func__shortrealtobits(), expression_op_func__sig(), expression_op_func__signed(), expression_op_func__slist(), expression_op_func__srandom(), expression_op_func__stop(), expression_op_func__sub_a(), expression_op_func__subtract(), expression_op_func__task_call(), expression_op_func__test_plusargs(), expression_op_func__time(), expression_op_func__trigger(), expression_op_func__uand(), expression_op_func__uinv(), expression_op_func__unand(), expression_op_func__unor(), expression_op_func__unot(), expression_op_func__unsigned(), expression_op_func__unxor(), expression_op_func__uor(), expression_op_func__urandom(), expression_op_func__urandom_range(), expression_op_func__uxor(), expression_op_func__value_plusargs(), expression_op_func__wait(), expression_op_func__xor(), expression_op_func__xor_a(), expression_operate(), expression_operate_recursively(), expression_resize(), expression_set_assigned(), expression_set_changed(), expression_set_signed(), expression_set_value(), expression_string(), expression_string_op(), file_exists(), fsm_add_arc(), fsm_arg_parse(), fsm_arg_parse_attr(), fsm_arg_parse_state(), fsm_arg_parse_trans(), fsm_arg_parse_value(), fsm_collect(), fsm_create(), fsm_create_tables(), fsm_db_merge(), fsm_db_read(), fsm_db_write(), fsm_dealloc(), fsm_display_arc_verbose(), fsm_display_funit_summary(), fsm_display_instance_summary(), fsm_display_state_verbose(), fsm_display_verbose(), fsm_funit_summary(), fsm_funit_verbose(), fsm_gather_signals(), fsm_get_coverage(), fsm_get_funit_summary(), fsm_get_inst_summary(), fsm_get_stats(), fsm_instance_summary(), fsm_instance_verbose(), fsm_link_add(), fsm_link_delete_list(), fsm_link_find(), fsm_link_find_by_pos(), fsm_merge(), fsm_report(), fsm_table_set(), fsm_var_add(), fsm_var_add_expr(), fsm_var_bind(), fsm_var_bind_add(), fsm_var_bind_expr(), fsm_var_bind_stmt(), fsm_var_cleanup(), fsm_var_dealloc(), fsm_var_is_output_state(), fsm_var_remove(), fsm_var_stmt_add(), fst_callback(), fst_parse(), fst_reader_process_hier(), func_iter_add_sig_links(), func_iter_add_stmt_links(), func_iter_count_scopes(), func_iter_dealloc(), func_iter_display(), func_iter_get_next_signal(), func_iter_get_next_statement(), func_iter_init(), func_iter_sort(), funit_add_thread(), funit_clean(), funit_create(), funit_db_inst_merge(), funit_db_mod_merge(), funit_db_read(), funit_db_write(), funit_dealloc(), funit_delete_thread(), funit_display_expressions(), funit_display_signals(), funit_find_by_id(), funit_find_param(), funit_find_signal(), funit_flatten_name(), funit_gen_task_function_namedblock_name(), funit_get_curr_function(), funit_get_curr_module(), funit_get_curr_module_safe(), funit_get_curr_task(), funit_get_port_count(), funit_init(), funit_is_child_of(), funit_is_one_signal_assigned(), funit_is_top_module(), funit_is_unnamed(), funit_is_unnamed_child_of(), funit_link_add(), funit_link_delete_list(), funit_link_find(), funit_link_remove(), funit_merge(), funit_output_dumpvars(), funit_push_threads(), funit_remove_stmt_blks_calling_stmt(), funit_size_elements(), funit_version_db_read(), gen_char_string(), gen_item_assign_ids(), gen_item_bind(), gen_item_calc_signal_name(), gen_item_compare(), gen_item_connect(), gen_item_create_bind(), gen_item_create_expr(), gen_item_create_inst(), gen_item_create_sig(), gen_item_create_stmt(), gen_item_create_tfn(), gen_item_db_write(), gen_item_db_write_expr_tree(), gen_item_dealloc(), gen_item_display(), gen_item_display_block(), gen_item_display_block_helper(), gen_item_find(), gen_item_get_genvar(), gen_item_remove_if_contains_expr_calling_stmt(), gen_item_resize_stmts_and_sigs(), gen_item_resolve(), gen_item_stringify(), gen_item_varname_contains_genvar(), gen_next_symbol(), generate_remove_stmt(), generate_remove_stmt_helper(), generate_resolve_inst(), get_absolute_path(), get_basename(), get_dirname(), get_funit_type(), get_next_vfile(), get_quoted_string(), get_relative_path(), gitem_link_add(), gitem_link_delete_list(), gitem_link_find(), gitem_link_remove(), info_db_read(), info_db_write(), info_dealloc(), info_set_vector_elem_size(), inst_link_add(), inst_link_delete_list(), inst_link_find_by_funit(), inst_link_find_by_scope(), inst_parm_add(), inst_parm_add_genvar(), inst_parm_bind(), inst_parm_dealloc(), inst_parm_find(), instance_add_child(), instance_compare(), instance_copy(), instance_copy_helper(), instance_create(), instance_db_write(), instance_dealloc(), instance_dealloc_single(), instance_dealloc_tree(), instance_display_tree(), instance_display_tree_helper(), instance_find_by_funit(), instance_find_by_funit_name(), instance_find_by_funit_name_if_one(), instance_find_expression_by_exclusion_id(), instance_find_fsm_arc_index_by_exclusion_id(), instance_find_scope(), instance_find_signal_by_exclusion_id(), instance_gen_scope(), instance_get_leading_hierarchy(), instance_mark_lhier_diffs(), instance_merge_tree(), instance_merge_two_trees(), instance_only_db_merge(), instance_only_db_read(), instance_output_dumpvars(), instance_parse_add(), instance_read_add(), instance_remove_parms_with_expr(), instance_remove_stmt_blks_calling_stmt(), instance_resolve(), instance_resolve_helper(), instance_resolve_inst(), is_func_unit(), is_legal_filename(), is_variable(), line_collect(), line_display_funit_summary(), line_display_instance_summary(), line_display_verbose(), line_funit_summary(), line_funit_verbose(), line_get_funit_summary(), line_get_inst_summary(), line_get_stats(), line_instance_summary(), line_instance_verbose(), line_report(), lxt2_rd_build_radix(), lxt2_rd_close(), lxt2_rd_expand_bits_to_integer(), lxt2_rd_expand_integer_to_bits(), lxt2_rd_get_facname(), lxt2_rd_iter_radix(), lxt2_rd_iter_radix0(), lxt2_rd_limit_time_range(), lxt2_rd_process_block(), lxt2_rd_regenerate_process_mask(), lxt2_rd_unlimit_time_range(), lxt_parse(), memory_ae_funit_summary(), memory_ae_instance_summary(), memory_collect(), memory_create_pdim_bit_array(), memory_display_ae_funit_summary(), memory_display_ae_instance_summary(), memory_display_memory(), memory_display_toggle_funit_summary(), memory_display_toggle_instance_summary(), memory_display_verbose(), memory_funit_verbose(), memory_get_coverage(), memory_get_funit_summary(), memory_get_inst_summary(), memory_get_mem_coverage(), memory_get_stat(), memory_get_stats(), memory_instance_verbose(), memory_report(), memory_toggle_funit_summary(), memory_toggle_instance_summary(), merge_check(), merged_cdd_db_read(), message_db_read(), mod_parm_add(), mod_parm_dealloc(), mod_parm_find(), mod_parm_find_expr_and_remove(), obfuscate_dealloc(), obfuscate_name(), obfuscate_set_mode(), ovl_add_assertions_to_no_score_list(), ovl_collect(), ovl_display_verbose(), ovl_get_coverage(), ovl_get_coverage_point(), ovl_get_funit_stats(), ovl_is_assertion_module(), ovl_is_assertion_name(), ovl_is_coverage_point(), param_db_write(), param_expr_eval(), param_find_and_set_expr_value(), param_has_defparam(), param_has_override(), param_resolve(), param_resolve_declared(), param_resolve_inst(), param_resolve_override(), param_set_sig_size(), param_size_function(), parse_and_score_dumpfile(), parse_design(), parse_readline(), parser_check_generation(), parser_copy_curr_range(), parser_copy_range_to_curr_range(), parser_dealloc_sig_range(), parser_explicitly_set_curr_range(), parser_handle_case_statement(), parser_handle_case_statement_list(), parser_handle_generate_case_statement(), parser_handle_generate_case_statement_list(), parser_implicitly_set_curr_range(), perf_gen_stats(), perf_output_inst_report(), perf_output_inst_report_helper(), perf_output_mod_stats(), race_blk_create(), race_blk_delete_list(), race_calc_assignments(), race_calc_expr_assignment(), race_calc_stmt_blk_type(), race_check_assignment_types(), race_check_modules(), race_check_one_block_assignment(), race_check_race_count(), race_collect_lines(), race_db_read(), race_db_write(), race_find_head_statement(), race_find_head_statement_containing_statement(), race_find_head_statement_containing_statement_helper(), race_get_head_statement(), race_get_stats(), race_handle_race_condition(), race_report(), race_report_summary(), race_report_verbose(), rank_calc_num_cps(), rank_check_index(), rank_count_cps(), rank_create_comp_cdd_cov(), rank_dealloc_comp_cdd_cov(), rank_gather_comb_cov(), rank_gather_comp_cdd_cov(), rank_gather_expression_cov(), rank_gather_fsm_cov(), rank_gather_signal_cov(), rank_output(), rank_perform(), rank_perform_greedy_sort(), rank_perform_weighted_selection(), rank_read_cdd(), rank_selected_cdd_cov(), read_command_file(), reentrant_count_afu_bits(), reentrant_create(), reentrant_dealloc(), reentrant_restore_data_bits(), reentrant_store_data_bits(), remove_underscores(), report_close_cdd(), report_gather_funit_stats(), report_gather_instance_stats(), report_generate(), report_output_exclusion_reason(), report_parse_args(), report_parse_metrics(), report_print_header(), report_read_cdd_and_ready(), report_save_cdd(), scope_compare(), scope_extract_back(), scope_extract_front(), scope_extract_scope(), scope_find_funit_from_scope(), scope_find_param(), scope_find_signal(), scope_find_task_function_namedblock(), scope_gen_printable(), scope_get_parent_funit(), scope_get_parent_module(), scope_local(), score_add_args(), score_generate_pli_tab_file(), score_generate_top_dumpvars_module(), score_generate_top_vpi_module(), score_parse_args(), score_parse_define(), search_add_directory_path(), search_add_extensions(), search_add_file(), search_add_include_path(), search_add_no_score_funit(), search_free_lists(), search_init(), sig_link_add(), sig_link_delete_list(), sig_link_find(), sim_add_nonblock_assign(), sim_add_statics(), sim_add_thread(), sim_create_thread(), sim_current_thread(), sim_dealloc(), sim_expr_changed(), sim_expression(), sim_finish(), sim_initialize(), sim_kill_thread(), sim_kill_thread_with_funit(), sim_perform_nba(), sim_simulate(), sim_stop(), sim_thread(), sim_thread_insert_into_delay_queue(), sim_thread_pop_head(), sim_thread_push(), statement_assign_expr_ids(), statement_connect(), statement_contains_expr_calling_stmt(), statement_create(), statement_db_read(), statement_db_write(), statement_db_write_expr_tree(), statement_db_write_tree(), statement_dealloc(), statement_dealloc_recursive(), statement_find_rhs_sigs(), statement_find_statement(), statement_get_last_line(), statement_get_last_line_helper(), statement_queue_add(), statement_queue_compare(), statement_size_elements(), static_expr_calc_lsb_and_width_post(), static_expr_calc_lsb_and_width_pre(), static_expr_dealloc(), static_expr_gen(), static_expr_gen_unary(), statistic_create(), statistic_dealloc(), statistic_is_empty(), stmt_blk_add_to_remove_list(), stmt_blk_remove(), stmt_blk_specify_removal_reason(), stmt_link_add(), stmt_link_delete_list(), stmt_link_find(), stmt_link_find_by_pos(), stmt_link_unlink(), str_link_add(), str_link_delete_list(), str_link_find(), str_link_remove(), struct_union_add_member(), struct_union_add_member_enum(), struct_union_add_member_sig(), struct_union_add_member_struct_union(), struct_union_add_member_typedef(), struct_union_add_member_void(), struct_union_create(), struct_union_dealloc(), struct_union_dealloc_list(), struct_union_length(), struct_union_member_dealloc(), substitute_env_vars(), sym_value_store(), symtable_add(), symtable_add_sym_sig(), symtable_assign(), symtable_create(), symtable_dealloc(), symtable_init(), symtable_set_value(), sys_task_bitstoreal(), sys_task_bitstoshortreal(), sys_task_dealloc(), sys_task_dist_uniform(), sys_task_itor(), sys_task_random(), sys_task_realtobits(), sys_task_rtoi(), sys_task_shortrealtobits(), sys_task_srandom(), sys_task_store_plusarg(), sys_task_test_plusargs(), sys_task_uniform(), sys_task_urandom(), sys_task_urandom_range(), sys_task_value_plusargs(), toggle_collect(), toggle_display_funit_summary(), toggle_display_instance_summary(), toggle_display_verbose(), toggle_funit_summary(), toggle_funit_verbose(), toggle_get_coverage(), toggle_get_funit_summary(), toggle_get_inst_summary(), toggle_get_stats(), toggle_instance_summary(), toggle_instance_verbose(), toggle_report(), tree_add(), tree_dealloc(), tree_find(), tree_remove(), util_readline(), vcd_callback(), vcd_parse(), vcd_parse_def(), vcd_parse_def_ignore(), vcd_parse_def_scope(), vcd_parse_def_var(), vcd_parse_sim(), vcd_parse_sim_ignore(), vcd_parse_sim_real(), vcd_parse_sim_vector(), vcdid(), vector_bitwise_and_op(), vector_bitwise_nand_op(), vector_bitwise_nor_op(), vector_bitwise_nxor_op(), vector_bitwise_or_op(), vector_bitwise_xor_op(), vector_ceq_ulong(), vector_clone(), vector_copy(), vector_copy_range(), vector_create(), vector_db_merge(), vector_db_read(), vector_db_write(), vector_dealloc(), vector_dealloc_value(), vector_display_toggle01_ulong(), vector_display_toggle10_ulong(), vector_from_int(), vector_from_real64(), vector_from_string(), vector_from_string_fixed(), vector_from_uint64(), vector_get_eval_a(), vector_get_eval_ab_count(), vector_get_eval_abc_count(), vector_get_eval_abcd_count(), vector_get_eval_b(), vector_get_eval_c(), vector_get_eval_d(), vector_get_sign_extend_vector_ulong(), vector_get_toggle01_ulong(), vector_get_toggle10_ulong(), vector_init_r32(), vector_init_r64(), vector_init_ulong(), vector_is_not_zero(), vector_is_unknown(), vector_lshift_ulong(), vector_mem_rw_count(), vector_merge(), vector_op_add(), vector_op_arshift(), vector_op_ceq(), vector_op_clog2(), vector_op_cne(), vector_op_cxeq(), vector_op_czeq(), vector_op_dec(), vector_op_divide(), vector_op_eq(), vector_op_expand(), vector_op_ge(), vector_op_gt(), vector_op_inc(), vector_op_land(), vector_op_le(), vector_op_list(), vector_op_lor(), vector_op_lshift(), vector_op_lt(), vector_op_modulus(), vector_op_multiply(), vector_op_ne(), vector_op_negate(), vector_op_rshift(), vector_op_subtract(), vector_part_select_pull(), vector_part_select_push(), vector_rshift_ulong(), vector_set_and_comb_evals(), vector_set_assigned(), vector_set_coverage_and_assign_ulong(), vector_set_or_comb_evals(), vector_set_other_comb_evals(), vector_set_static(), vector_set_to_x(), vector_set_unary_evals(), vector_set_value_ulong(), vector_sign_extend_ulong(), vector_to_int(), vector_to_real64(), vector_to_sim_time(), vector_to_string(), vector_to_uint64(), vector_toggle_count(), vector_unary_and(), vector_unary_inv(), vector_unary_nand(), vector_unary_nor(), vector_unary_not(), vector_unary_nxor(), vector_unary_or(), vector_unary_xor(), vector_vcd_assign(), VLerror(), VLwarn(), vsignal_add_expression(), vsignal_calc_lsb_for_expr(), vsignal_calc_width_for_expr(), vsignal_create(), vsignal_create_vec(), vsignal_db_merge(), vsignal_db_read(), vsignal_db_write(), vsignal_dealloc(), vsignal_duplicate(), vsignal_from_string(), vsignal_init(), vsignal_merge(), vsignal_propagate(), and vsignal_vcd_assign().

#define PROFILE_END   foobar = 0

Referenced by add_sym_values_to_sim(), arc_add(), arc_are_any_excluded(), arc_create(), arc_db_merge(), arc_db_read(), arc_db_write(), arc_dealloc(), arc_find_arc(), arc_find_arc_by_exclusion_id(), arc_find_from_state(), arc_find_to_state(), arc_get_states(), arc_get_stats(), arc_get_transitions(), arc_merge(), arc_state_hits(), arc_transition_excluded(), arc_transition_hits(), args_db_read(), assertion_collect(), assertion_display_funit_summary(), assertion_display_instance_summary(), assertion_display_verbose(), assertion_funit_summary(), assertion_funit_verbose(), assertion_get_coverage(), assertion_get_funit_summary(), assertion_get_stats(), assertion_instance_summary(), assertion_instance_verbose(), assertion_parse(), assertion_parse_attr(), assertion_report(), attribute_create(), attribute_dealloc(), attribute_parse(), bind_add(), bind_append_fsm_expr(), bind_dealloc(), bind_find_sig_name(), bind_param(), bind_perform(), bind_remove(), bind_signal(), bind_task_function_namedblock(), bind_task_function_ports(), calc_miss_percent(), check_option_value(), combination_calc_depth(), combination_collect(), combination_display_funit_summary(), combination_display_instance_summary(), combination_display_verbose(), combination_does_multi_exp_need_ul(), combination_draw_centered_line(), combination_draw_line(), combination_event(), combination_funit_summary(), combination_funit_verbose(), combination_get_coverage(), combination_get_exclude_list(), combination_get_expression(), combination_get_funit_summary(), combination_get_inst_summary(), combination_get_missed_expr(), combination_get_stats(), combination_get_tree_stats(), combination_instance_summary(), combination_instance_verbose(), combination_is_expr_multi_node(), combination_list_missed(), combination_multi_expr_calc(), combination_multi_expr_output(), combination_multi_expr_output_length(), combination_multi_var_exprs(), combination_multi_vars(), combination_output_expr(), combination_parenthesize(), combination_prep_line(), combination_report(), combination_reset_counted_expr_tree(), combination_reset_counted_exprs(), combination_two_vars(), combination_unary(), combination_underline(), combination_underline_tree(), command_exclude(), command_merge(), command_rank(), command_report(), command_score(), convert_file_to_module(), covered_cb_error_handler(), covered_create_value_change_cb(), covered_end_of_sim(), covered_parse_instance(), covered_parse_signals(), covered_parse_task_func(), covered_sim_calltf(), covered_value_change_bin(), covered_value_change_real(), db_add_declared_param(), db_add_defparam(), db_add_enum(), db_add_expression(), db_add_file_version(), db_add_function_task_namedblock(), db_add_gen_item_block(), db_add_instance(), db_add_module(), db_add_override_param(), db_add_signal(), db_add_statement(), db_add_typedef(), db_add_vector_param(), db_assign_symbol(), db_bind_expr_tree(), db_check_dumpfile_scopes(), db_check_for_top_module(), db_close(), db_connect_statement_false(), db_connect_statement_true(), db_create(), db_create_attr_param(), db_create_expr_from_static(), db_create_expression(), db_create_sensitivity_list(), db_create_statement(), db_create_unnamed_scope(), db_curr_signal_count(), db_do_timestep(), db_end_enum_list(), db_end_function_task_namedblock(), db_end_module(), db_find_gen_item(), db_find_signal(), db_find_typedef(), db_gen_curr_inst_scope(), db_gen_exclusion_id(), db_gen_item_connect(), db_gen_item_connect_false(), db_gen_item_connect_true(), db_get_curr_funit(), db_get_curr_gen_block(), db_get_exclusion_id_size(), db_is_unnamed_scope(), db_merge_instance_trees(), db_output_dumpvars(), db_parallelize_statement(), db_parse_attribute(), db_read(), db_remove_statement(), db_remove_statement_from_current_funit(), db_remove_stmt_blks_calling_statement(), db_scale_to_precision(), db_set_symbol_char(), db_set_symbol_string(), db_set_timescale(), db_set_vcd_scope(), db_statement_connect(), db_sync_curr_instance(), db_vcd_upscope(), db_write(), defparam_add(), defparam_dealloc(), directory_exists(), directory_load(), enumerate_add_item(), enumerate_dealloc(), enumerate_dealloc_list(), enumerate_end_list(), enumerate_resolve(), exclude_apply_exclusions(), exclude_arc_assign_and_recalc(), exclude_assert_from_id(), exclude_db_merge(), exclude_db_read(), exclude_db_write(), exclude_expr_assign_and_recalc(), exclude_expr_from_id(), exclude_find_exclude_reason(), exclude_find_expression(), exclude_find_fsm_arc(), exclude_find_signal(), exclude_format_reason(), exclude_fsm_from_id(), exclude_get_message(), exclude_handle_exclude_reason(), exclude_is_assert_excluded(), exclude_is_comb_excluded(), exclude_is_fsm_excluded(), exclude_is_line_excluded(), exclude_is_toggle_excluded(), exclude_line_from_id(), exclude_memory_from_id(), exclude_merge(), exclude_print_exclusion(), exclude_remove_exclude_reason(), exclude_resolve_reason(), exclude_set_assert_exclude(), exclude_set_comb_exclude(), exclude_set_fsm_exclude(), exclude_set_line_exclude(), exclude_set_toggle_exclude(), exclude_sig_assign_and_recalc(), exclude_toggle_from_id(), exp_link_add(), exp_link_delete_list(), exp_link_find(), exp_link_find_by_pos(), exp_link_remove(), expression_assign(), expression_assign_expr_ids(), expression_contains_expr_calling_stmt(), expression_create(), expression_create_nba(), expression_create_tmp_vecs(), expression_create_value(), expression_db_merge(), expression_db_read(), expression_db_write(), expression_db_write_tree(), expression_dealloc(), expression_find_expr(), expression_find_params(), expression_find_rhs_sigs(), expression_find_uline_id(), expression_get_curr_dimension(), expression_get_first_line_expr(), expression_get_id(), expression_get_last_line_expr(), expression_get_root_statement(), expression_is_assigned(), expression_is_bit_select(), expression_is_in_rassign(), expression_is_last_select(), expression_is_nba_lhs(), expression_is_static_only_helper(), expression_merge(), expression_op_func__add(), expression_op_func__add_a(), expression_op_func__aedge(), expression_op_func__and(), expression_op_func__and_a(), expression_op_func__arshift(), expression_op_func__arshift_a(), expression_op_func__assign(), expression_op_func__bitstoreal(), expression_op_func__bitstoshortreal(), expression_op_func__case(), expression_op_func__casex(), expression_op_func__casez(), expression_op_func__ceq(), expression_op_func__clog2(), expression_op_func__cne(), expression_op_func__concat(), expression_op_func__cond(), expression_op_func__cond_sel(), expression_op_func__default(), expression_op_func__delay(), expression_op_func__dim(), expression_op_func__disable(), expression_op_func__divide(), expression_op_func__divide_a(), expression_op_func__dly_assign(), expression_op_func__dly_op(), expression_op_func__eor(), expression_op_func__eq(), expression_op_func__expand(), expression_op_func__exponent(), expression_op_func__finish(), expression_op_func__fork(), expression_op_func__func_call(), expression_op_func__ge(), expression_op_func__gt(), expression_op_func__idec(), expression_op_func__iinc(), expression_op_func__itor(), expression_op_func__join(), expression_op_func__land(), expression_op_func__le(), expression_op_func__list(), expression_op_func__lor(), expression_op_func__lshift(), expression_op_func__lshift_a(), expression_op_func__lt(), expression_op_func__mbit(), expression_op_func__mbit_neg(), expression_op_func__mbit_pos(), expression_op_func__mod(), expression_op_func__mod_a(), expression_op_func__multiply(), expression_op_func__multiply_a(), expression_op_func__nand(), expression_op_func__nb_call(), expression_op_func__ne(), expression_op_func__nedge(), expression_op_func__negate(), expression_op_func__nor(), expression_op_func__null(), expression_op_func__nxor(), expression_op_func__or(), expression_op_func__or_a(), expression_op_func__passign(), expression_op_func__pdec(), expression_op_func__pedge(), expression_op_func__pinc(), expression_op_func__random(), expression_op_func__realtime(), expression_op_func__realtobits(), expression_op_func__repeat(), expression_op_func__repeat_dly(), expression_op_func__rshift(), expression_op_func__rshift_a(), expression_op_func__rtoi(), expression_op_func__sassign(), expression_op_func__sbit(), expression_op_func__shortrealtobits(), expression_op_func__sig(), expression_op_func__signed(), expression_op_func__slist(), expression_op_func__srandom(), expression_op_func__stop(), expression_op_func__sub_a(), expression_op_func__subtract(), expression_op_func__task_call(), expression_op_func__test_plusargs(), expression_op_func__time(), expression_op_func__trigger(), expression_op_func__uand(), expression_op_func__uinv(), expression_op_func__unand(), expression_op_func__unor(), expression_op_func__unot(), expression_op_func__unsigned(), expression_op_func__unxor(), expression_op_func__uor(), expression_op_func__urandom(), expression_op_func__urandom_range(), expression_op_func__uxor(), expression_op_func__value_plusargs(), expression_op_func__wait(), expression_op_func__xor(), expression_op_func__xor_a(), expression_operate(), expression_operate_recursively(), expression_resize(), expression_set_assigned(), expression_set_changed(), expression_set_signed(), expression_set_value(), expression_string(), expression_string_op(), file_exists(), fsm_add_arc(), fsm_arg_parse(), fsm_arg_parse_attr(), fsm_arg_parse_state(), fsm_arg_parse_trans(), fsm_arg_parse_value(), fsm_collect(), fsm_create_tables(), fsm_db_merge(), fsm_db_read(), fsm_db_write(), fsm_dealloc(), fsm_display_arc_verbose(), fsm_display_funit_summary(), fsm_display_instance_summary(), fsm_display_state_verbose(), fsm_display_verbose(), fsm_funit_summary(), fsm_funit_verbose(), fsm_gather_signals(), fsm_get_coverage(), fsm_get_funit_summary(), fsm_get_inst_summary(), fsm_get_stats(), fsm_instance_summary(), fsm_instance_verbose(), fsm_link_add(), fsm_link_delete_list(), fsm_link_find(), fsm_link_find_by_pos(), fsm_merge(), fsm_report(), fsm_table_set(), fsm_var_add_expr(), fsm_var_bind(), fsm_var_bind_add(), fsm_var_bind_expr(), fsm_var_bind_stmt(), fsm_var_cleanup(), fsm_var_dealloc(), fsm_var_is_output_state(), fsm_var_remove(), fsm_var_stmt_add(), fst_callback(), fst_parse(), fst_reader_process_hier(), func_iter_add_sig_links(), func_iter_add_stmt_links(), func_iter_count_scopes(), func_iter_dealloc(), func_iter_display(), func_iter_get_next_signal(), func_iter_get_next_statement(), func_iter_init(), func_iter_sort(), funit_clean(), funit_create(), funit_db_inst_merge(), funit_db_mod_merge(), funit_db_read(), funit_db_write(), funit_dealloc(), funit_delete_thread(), funit_display_expressions(), funit_display_signals(), funit_find_by_id(), funit_find_param(), funit_find_signal(), funit_flatten_name(), funit_gen_task_function_namedblock_name(), funit_get_curr_function(), funit_get_curr_module(), funit_get_curr_module_safe(), funit_get_curr_task(), funit_get_port_count(), funit_init(), funit_is_child_of(), funit_is_one_signal_assigned(), funit_is_top_module(), funit_is_unnamed(), funit_is_unnamed_child_of(), funit_link_add(), funit_link_delete_list(), funit_link_find(), funit_link_remove(), funit_merge(), funit_output_dumpvars(), funit_push_threads(), funit_remove_stmt_blks_calling_stmt(), funit_size_elements(), funit_version_db_read(), gen_char_string(), gen_item_assign_ids(), gen_item_bind(), gen_item_compare(), gen_item_connect(), gen_item_db_write(), gen_item_db_write_expr_tree(), gen_item_dealloc(), gen_item_display(), gen_item_display_block(), gen_item_display_block_helper(), gen_item_find(), gen_item_get_genvar(), gen_item_remove_if_contains_expr_calling_stmt(), gen_item_resize_stmts_and_sigs(), gen_item_resolve(), gen_item_stringify(), gen_next_symbol(), generate_remove_stmt(), generate_remove_stmt_helper(), generate_resolve_inst(), get_absolute_path(), get_basename(), get_dirname(), get_funit_type(), get_next_vfile(), get_quoted_string(), get_relative_path(), gitem_link_add(), gitem_link_delete_list(), gitem_link_find(), gitem_link_remove(), info_db_read(), info_db_write(), info_dealloc(), info_set_vector_elem_size(), inst_link_add(), inst_link_delete_list(), inst_link_find_by_funit(), inst_link_find_by_scope(), inst_parm_add(), inst_parm_add_genvar(), inst_parm_bind(), inst_parm_dealloc(), inst_parm_find(), instance_add_child(), instance_compare(), instance_copy(), instance_copy_helper(), instance_create(), instance_db_write(), instance_dealloc(), instance_dealloc_single(), instance_dealloc_tree(), instance_display_tree(), instance_display_tree_helper(), instance_find_by_funit(), instance_find_by_funit_name(), instance_find_by_funit_name_if_one(), instance_find_expression_by_exclusion_id(), instance_find_fsm_arc_index_by_exclusion_id(), instance_find_scope(), instance_find_signal_by_exclusion_id(), instance_gen_scope(), instance_get_leading_hierarchy(), instance_mark_lhier_diffs(), instance_merge_tree(), instance_merge_two_trees(), instance_only_db_merge(), instance_only_db_read(), instance_output_dumpvars(), instance_parse_add(), instance_read_add(), instance_remove_parms_with_expr(), instance_remove_stmt_blks_calling_stmt(), instance_resolve(), instance_resolve_helper(), instance_resolve_inst(), is_func_unit(), is_legal_filename(), is_variable(), line_collect(), line_display_funit_summary(), line_display_instance_summary(), line_display_verbose(), line_funit_summary(), line_funit_verbose(), line_get_funit_summary(), line_get_inst_summary(), line_get_stats(), line_instance_summary(), line_instance_verbose(), line_report(), lxt2_rd_build_radix(), lxt2_rd_close(), lxt2_rd_expand_bits_to_integer(), lxt2_rd_expand_integer_to_bits(), lxt2_rd_get_facname(), lxt2_rd_iter_radix(), lxt2_rd_iter_radix0(), lxt2_rd_limit_time_range(), lxt2_rd_process_block(), lxt2_rd_regenerate_process_mask(), lxt2_rd_unlimit_time_range(), lxt_parse(), memory_ae_funit_summary(), memory_ae_instance_summary(), memory_collect(), memory_create_pdim_bit_array(), memory_display_ae_funit_summary(), memory_display_ae_instance_summary(), memory_display_memory(), memory_display_toggle_funit_summary(), memory_display_toggle_instance_summary(), memory_display_verbose(), memory_funit_verbose(), memory_get_coverage(), memory_get_funit_summary(), memory_get_inst_summary(), memory_get_mem_coverage(), memory_get_stat(), memory_get_stats(), memory_instance_verbose(), memory_report(), memory_toggle_funit_summary(), memory_toggle_instance_summary(), merge_check(), merged_cdd_db_read(), message_db_read(), mod_parm_add(), mod_parm_dealloc(), mod_parm_find(), mod_parm_find_expr_and_remove(), obfuscate_dealloc(), obfuscate_name(), obfuscate_set_mode(), ovl_add_assertions_to_no_score_list(), ovl_collect(), ovl_display_verbose(), ovl_get_coverage(), ovl_get_coverage_point(), ovl_get_funit_stats(), ovl_is_assertion_module(), ovl_is_assertion_name(), ovl_is_coverage_point(), param_db_write(), param_expr_eval(), param_find_and_set_expr_value(), param_has_defparam(), param_has_override(), param_resolve(), param_resolve_declared(), param_resolve_inst(), param_resolve_override(), param_set_sig_size(), param_size_function(), parse_and_score_dumpfile(), parse_design(), parse_readline(), parser_check_generation(), parser_dealloc_sig_range(), parser_handle_case_statement(), parser_handle_case_statement_list(), parser_handle_generate_case_statement(), parser_handle_generate_case_statement_list(), perf_gen_stats(), perf_output_inst_report(), perf_output_inst_report_helper(), perf_output_mod_stats(), race_blk_create(), race_blk_delete_list(), race_calc_assignments(), race_calc_expr_assignment(), race_calc_stmt_blk_type(), race_check_assignment_types(), race_check_modules(), race_check_one_block_assignment(), race_check_race_count(), race_collect_lines(), race_db_read(), race_db_write(), race_find_head_statement(), race_find_head_statement_containing_statement(), race_find_head_statement_containing_statement_helper(), race_get_head_statement(), race_get_stats(), race_handle_race_condition(), race_report(), race_report_summary(), race_report_verbose(), rank_calc_num_cps(), rank_check_index(), rank_count_cps(), rank_create_comp_cdd_cov(), rank_dealloc_comp_cdd_cov(), rank_gather_comb_cov(), rank_gather_comp_cdd_cov(), rank_gather_expression_cov(), rank_gather_fsm_cov(), rank_gather_signal_cov(), rank_output(), rank_perform(), rank_perform_greedy_sort(), rank_perform_weighted_selection(), rank_read_cdd(), rank_selected_cdd_cov(), reentrant_count_afu_bits(), reentrant_create(), reentrant_dealloc(), reentrant_restore_data_bits(), reentrant_store_data_bits(), remove_underscores(), report_close_cdd(), report_gather_funit_stats(), report_gather_instance_stats(), report_generate(), report_output_exclusion_reason(), report_parse_args(), report_parse_metrics(), report_print_header(), report_read_cdd_and_ready(), report_save_cdd(), scope_compare(), scope_extract_back(), scope_extract_front(), scope_extract_scope(), scope_find_funit_from_scope(), scope_find_param(), scope_find_signal(), scope_find_task_function_namedblock(), scope_gen_printable(), scope_get_parent_funit(), scope_get_parent_module(), scope_local(), score_generate_top_dumpvars_module(), score_generate_top_vpi_module(), search_free_lists(), sig_link_add(), sig_link_delete_list(), sig_link_find(), sim_add_nonblock_assign(), sim_add_statics(), sim_add_thread(), sim_create_thread(), sim_dealloc(), sim_expr_changed(), sim_expression(), sim_finish(), sim_initialize(), sim_kill_thread(), sim_kill_thread_with_funit(), sim_perform_nba(), sim_simulate(), sim_stop(), sim_thread(), sim_thread_insert_into_delay_queue(), sim_thread_pop_head(), sim_thread_push(), statement_assign_expr_ids(), statement_connect(), statement_contains_expr_calling_stmt(), statement_create(), statement_db_read(), statement_db_write(), statement_db_write_expr_tree(), statement_db_write_tree(), statement_dealloc(), statement_dealloc_recursive(), statement_find_rhs_sigs(), statement_find_statement(), statement_get_last_line(), statement_get_last_line_helper(), statement_queue_add(), statement_queue_compare(), statement_size_elements(), static_expr_calc_lsb_and_width_post(), static_expr_calc_lsb_and_width_pre(), static_expr_gen_unary(), statistic_create(), statistic_dealloc(), statistic_is_empty(), stmt_blk_add_to_remove_list(), stmt_blk_remove(), stmt_blk_specify_removal_reason(), stmt_link_add(), stmt_link_delete_list(), stmt_link_find(), stmt_link_find_by_pos(), stmt_link_unlink(), str_link_add(), str_link_delete_list(), str_link_find(), str_link_remove(), struct_union_add_member(), struct_union_add_member_enum(), struct_union_add_member_sig(), struct_union_add_member_struct_union(), struct_union_add_member_typedef(), struct_union_add_member_void(), struct_union_create(), struct_union_dealloc(), struct_union_dealloc_list(), struct_union_length(), struct_union_member_dealloc(), substitute_env_vars(), sym_value_store(), symtable_add(), symtable_add_sym_sig(), symtable_assign(), symtable_create(), symtable_dealloc(), symtable_init(), symtable_set_value(), sys_task_bitstoreal(), sys_task_bitstoshortreal(), sys_task_dealloc(), sys_task_dist_uniform(), sys_task_itor(), sys_task_random(), sys_task_realtobits(), sys_task_rtoi(), sys_task_shortrealtobits(), sys_task_srandom(), sys_task_store_plusarg(), sys_task_test_plusargs(), sys_task_uniform(), sys_task_value_plusargs(), toggle_collect(), toggle_display_funit_summary(), toggle_display_instance_summary(), toggle_display_verbose(), toggle_funit_summary(), toggle_funit_verbose(), toggle_get_coverage(), toggle_get_funit_summary(), toggle_get_inst_summary(), toggle_get_stats(), toggle_instance_summary(), toggle_instance_verbose(), toggle_report(), tree_add(), tree_dealloc(), tree_find(), tree_remove(), util_readline(), vcd_callback(), vcd_parse(), vcd_parse_def(), vcd_parse_def_ignore(), vcd_parse_def_scope(), vcd_parse_def_var(), vcd_parse_sim(), vcd_parse_sim_ignore(), vcd_parse_sim_real(), vcd_parse_sim_vector(), vcdid(), vector_bitwise_and_op(), vector_bitwise_nand_op(), vector_bitwise_nor_op(), vector_bitwise_nxor_op(), vector_bitwise_or_op(), vector_bitwise_xor_op(), vector_ceq_ulong(), vector_clone(), vector_copy(), vector_copy_range(), vector_create(), vector_db_merge(), vector_db_read(), vector_db_write(), vector_dealloc(), vector_dealloc_value(), vector_display_toggle01_ulong(), vector_display_toggle10_ulong(), vector_from_int(), vector_from_real64(), vector_from_string(), vector_from_string_fixed(), vector_from_uint64(), vector_get_eval_a(), vector_get_eval_ab_count(), vector_get_eval_abc_count(), vector_get_eval_abcd_count(), vector_get_eval_b(), vector_get_eval_c(), vector_get_eval_d(), vector_get_sign_extend_vector_ulong(), vector_get_toggle01_ulong(), vector_get_toggle10_ulong(), vector_init_r32(), vector_init_r64(), vector_init_ulong(), vector_is_not_zero(), vector_is_unknown(), vector_lshift_ulong(), vector_mem_rw_count(), vector_merge(), vector_op_add(), vector_op_arshift(), vector_op_ceq(), vector_op_clog2(), vector_op_cne(), vector_op_cxeq(), vector_op_czeq(), vector_op_dec(), vector_op_divide(), vector_op_eq(), vector_op_expand(), vector_op_ge(), vector_op_gt(), vector_op_inc(), vector_op_land(), vector_op_le(), vector_op_list(), vector_op_lor(), vector_op_lshift(), vector_op_lt(), vector_op_modulus(), vector_op_multiply(), vector_op_ne(), vector_op_negate(), vector_op_rshift(), vector_op_subtract(), vector_part_select_pull(), vector_part_select_push(), vector_rshift_ulong(), vector_set_and_comb_evals(), vector_set_assigned(), vector_set_coverage_and_assign_ulong(), vector_set_or_comb_evals(), vector_set_other_comb_evals(), vector_set_static(), vector_set_to_x(), vector_set_unary_evals(), vector_set_value_ulong(), vector_sign_extend_ulong(), vector_to_int(), vector_to_real64(), vector_to_sim_time(), vector_to_string(), vector_to_uint64(), vector_toggle_count(), vector_unary_and(), vector_unary_inv(), vector_unary_nand(), vector_unary_nor(), vector_unary_not(), vector_unary_nxor(), vector_unary_or(), vector_unary_xor(), vector_vcd_assign(), VLerror(), VLwarn(), vsignal_add_expression(), vsignal_calc_lsb_for_expr(), vsignal_calc_width_for_expr(), vsignal_create(), vsignal_create_vec(), vsignal_db_merge(), vsignal_db_read(), vsignal_db_write(), vsignal_dealloc(), vsignal_duplicate(), vsignal_from_string(), vsignal_init(), vsignal_merge(), vsignal_propagate(), and vsignal_vcd_assign().

#define PROFILE_START ( index   ) 

Function Documentation

void profiler_enter ( unsigned int  index  ) 

Function to be called whenever a new function is entered.

Parameters:
index Profiler index of current function.

Increases the current call count for the current function, stops the timer for the last running counter and starts the timer for the current function.

References stack, and stack_size.

00084                                           {
00085 
00086   /* Stop the last running timer if we are going to be timed */
00087   if( (stack_size > 0) && profiles[index].timed && profiles[stack[stack_size-1]].timed ) {
00088     timer_stop( &profiles[stack[stack_size-1]].time_in );
00089   }
00090 
00091   /* Increment the calls counter */
00092   profiles[index].calls++;
00093 
00094   /* Start the timer for this function, if needed */
00095   if( profiles[index].timed ) {
00096     timer_start( &profiles[index].time_in );
00097     stack[stack_size] = index;
00098     stack_size++;
00099   }
00100 
00101 }

void profiler_exit ( unsigned int  index  ) 

Function to be called whenever a timed function is exited.

Gets called when leaving a profiling function. Stops the current timer and pops the stack.

References stack, and stack_size.

00106                                          {
00107 
00108   /* Stop the current timer */
00109   timer_stop( &profiles[index].time_in );
00110 
00111   /* Pop the stack */
00112   stack_size--;
00113 
00114   /* Start the timer, if needed */
00115   if( (stack_size > 0) && profiles[stack[stack_size-1]].timed ) {
00116     timer_start( &profiles[stack[stack_size-1]].time_in );
00117   }
00118 
00119 }

void profiler_report (  ) 

Output profiler report.

Generates profiling report if the profiling mode is set to TRUE.

References FATAL, free_safe, print_output(), profiler_dealloc(), profiler_sort_by_avg_time(), profiler_sort_by_calls(), profiler_sort_by_time(), profiling_mode, profiling_output, user_msg, and USER_MSG_LENGTH.

Referenced by main().

00296                        {
00297 
00298   FILE* ofile;  /* File stream pointer to output file */
00299 
00300   if( profiling_mode ) {
00301 
00302     assert( profiling_output != NULL );
00303 
00304     if( (ofile = fopen( profiling_output, "w" )) != NULL ) {
00305 
00306       unsigned int rv;
00307 
00308       /* Stop the simulation timer and deallocate it */
00309       timer_stop( &sim_timer );
00310 
00311       /* Output profiling results */
00312       profiler_sort_by_time( ofile );
00313       profiler_sort_by_avg_time( ofile );
00314       profiler_sort_by_calls( ofile );
00315 
00316       /* Close the output file */
00317       rv = fclose( ofile );
00318       assert( rv == 0 );
00319 
00320     } else {
00321 
00322       unsigned int rv = snprintf( user_msg, USER_MSG_LENGTH, "Unable to open profiling output file \"%s\" for writing", profiling_output );
00323       assert( rv < USER_MSG_LENGTH );
00324       print_output( user_msg, FATAL, __FILE__, __LINE__ );
00325 
00326     }
00327 
00328   }
00329 
00330   /* Deallocate sim_timer */
00331   free_safe( sim_timer, sizeof( timer ) );
00332 
00333   /* Delete memory associated with the profiler */
00334   profiler_dealloc();
00335 
00336 }

void profiler_set_filename ( const char *  fname  ) 

Sets the profiling output file to the given value.

Parameters:
fname Name of output profiling file.

Sets the profiling output file to the given value.

References free_safe, profiling_output, and strdup_safe.

Referenced by covered_sim_calltf(), and main().

00069                                                 {
00070 
00071   /* Deallocate profiling output name, if one was already specified */
00072   free_safe( profiling_output, (strlen( profiling_output ) + 1) );
00073 
00074   profiling_output = strdup_safe( fname );
00075 
00076 }

void profiler_set_mode ( bool  value  ) 

Sets the current profiling mode to the given value.

Parameters:
value New value to set profiling mode to

Sets the current profiling mode to the given value.

References profiling_mode.

Referenced by covered_sim_calltf(), and main().

00052                                      {
00053 
00054   profiling_mode = value;
00055 
00056 #ifdef HAVE_SYS_TIME_H
00057   if( profiling_mode ) {
00058     timer_start( &sim_timer );
00059   }
00060 #endif
00061     
00062 }


Variable Documentation

Current profiling mode value

Referenced by profiler_report(), and profiler_set_mode().

Generated on Sun Nov 21 00:55:40 2010 for Covered by  doxygen 1.6.3