LCOV - code coverage report
Current view: top level - Python - compile.c (source / functions) Hit Total Coverage
Test: CPython 3.12 LCOV report [commit 5e6661bce9] Lines: 3732 4990 74.8 %
Date: 2023-03-20 08:15:36 Functions: 245 269 91.1 %
Branches: 2719 4935 55.1 %

Function Name Sort by function name Hit count Sort by hit count
PyCode_Optimize 0
PyCompile_OpcodeStackEffect 0
PyCompile_OpcodeStackEffectWithJump 0
_PyAST_Compile 319
_PyCompile_CodeGen 0
_PyCompile_OptimizeCfg 0
add_checks_for_loads_of_uninitialized_variables 8041
add_return_at_end 8041
addop_binary 4263
addop_yield 449
apply_static_swaps 774
are_all_items_const 924
assemble 8041
assemble_code_unit 8041
assemble_emit 8041
assemble_emit_exception_table_entry 7440
assemble_emit_exception_table_item 29760
assemble_emit_instr 342036
assemble_emit_location 264465
assemble_exception_table 8041
assemble_free 8041
assemble_init 8041
assemble_jump_offsets 8041
assemble_location_info 8041
assignment_helper 1134
basicblock_addop 387650
basicblock_append_instructions 2669
basicblock_exits_scope 65096
basicblock_last_instr 1316809
basicblock_next_instr 395125
basicblock_nofallthrough 347556
blocksize 61502
build_cellfixedoffsets 8041
cfg_builder_addop 386612
cfg_builder_current_block_is_terminated 420209
cfg_builder_fini 8041
cfg_builder_init 8041
cfg_builder_maybe_start_new_block 420209
cfg_builder_new_block 63119
cfg_builder_use_label 33597
cfg_builder_use_next_block 53526
cfg_to_instructions 0
check_ann_expr 0
check_ann_subscr 0
check_annotation 10
check_caller 15536
check_cfg 8041
check_compare 6367
check_index 2593
check_is_arg 12784
check_subscripter 2593
codegen_addop_i 289336
codegen_addop_j 28995
codegen_addop_noarg 67751
compiler_add_const 65284
compiler_add_yield_from 195
compiler_addcompare 6426
compiler_addop_load_const 57553
compiler_addop_name 32372
compiler_addop_o 71669
compiler_annassign 17
compiler_apply_decorators 7134
compiler_assert 239
compiler_async_comprehension_generator 0
compiler_async_for 0
compiler_async_with 5
compiler_augassign 722
compiler_body 939
compiler_boolop 392
compiler_break 275
compiler_call 26546
compiler_call_exit_with_nones 481
compiler_call_helper 16269
compiler_call_simple_kw_helper 1195
compiler_check_debug_args 6536
compiler_check_debug_args_seq 19608
compiler_check_debug_one_arg 26067
compiler_class 733
compiler_codegen 319
compiler_compare 6321
compiler_comprehension 453
compiler_comprehension_generator 471
compiler_continue 231
compiler_decorators 7134
compiler_default_arguments 6536
compiler_dict 397
compiler_dictcomp 23
compiler_enter_scope 8041
compiler_error 0
compiler_error_duplicate_store 0
compiler_exit_scope 8041
compiler_for 1236
compiler_formatted_value 1826
compiler_free 319
compiler_from_import 524
compiler_function 6401
compiler_genexp 197
compiler_if 8896
compiler_ifexp 231
compiler_import 899
compiler_import_as 50
compiler_joined_str 1188
compiler_jump_if 14708
compiler_lambda 135
compiler_list 1029
compiler_listcomp 219
compiler_lookup_arg 1050
compiler_make_closure 7722
compiler_match 4
compiler_match_inner 4
compiler_mod 319
compiler_nameop 115879
compiler_pattern 18
compiler_pattern_as 3
compiler_pattern_class 4
compiler_pattern_mapping 0
compiler_pattern_or 0
compiler_pattern_sequence 5
compiler_pattern_singleton 1
compiler_pattern_star 1
compiler_pattern_subpattern 7
compiler_pattern_value 4
compiler_pop_except_and_reraise 1878
compiler_pop_fblock 6394
compiler_push_fblock 6394
compiler_return 5842
compiler_set 40
compiler_set_qualname 7722
compiler_setcomp 14
compiler_setup 319
compiler_slice 814
compiler_stmt_expr 8026
compiler_subdict 282
compiler_subkwargs 24
compiler_subscript 3526
compiler_sync_comprehension_generator 471
compiler_try 1469
compiler_try_except 1297
compiler_try_finally 192
compiler_try_star 0
compiler_try_star_except 0
compiler_try_star_finally 0
compiler_tuple 2952
compiler_unit_free 8041
compiler_unwind_fblock 1586
compiler_unwind_fblock_stack 7659
compiler_visit_annexpr 0
compiler_visit_annotations 6401
compiler_visit_argannotation 19050
compiler_visit_argannotations 19203
compiler_visit_defaults 998
compiler_visit_expr 201007
compiler_visit_expr1 201007
compiler_visit_keyword 1963
compiler_visit_kwonlydefaults 6536
compiler_visit_stmt 55660
compiler_warn 0
compiler_while 305
compiler_with 384
compiler_with_except_finish 389
compute_code_flags 8041
compute_localsplus_info 8041
consts_dict_keys_inorder 8041
convert_exception_handlers_to_nops 8041
copy_basicblock 514
copy_except_stack 18779
dict_add_o 213543
dict_keys_inorder 8041
dictbytype 16082
duplicate_exits_without_lineno 8041
eliminate_empty_basic_blocks 16082
emit_and_reset_fail_pop 11
ensure_array_large_enough 815334
ensure_fail_pop 19
except_stack_top 54053
fast_scan_many_locals 0
find_ann 2106
fix_cell_offsets 8041
fold_tuple_on_constants 3656
forbidden_name 135505
get_const_value 3579
get_ref_type 938
guarantee_lineno_for_exits 8041
infer_type 2593
inline_small_exit_blocks 117834
insert_instruction 2390
insert_prefix_instructions 8041
instr_sequence_addop 386082
instr_sequence_fini 8041
instr_sequence_insert_instruction 530
instr_sequence_new_label 33597
instr_sequence_next_inst 386612
instr_sequence_to_cfg 8041
instr_sequence_to_instructions 0
instr_sequence_use_label 33597
instr_size 1860948
instructions_to_cfg 0
is_bit_set_in_table 4262278
is_block_push 1431493
is_exit_without_lineno 49183
is_import_originated 13833
is_jump 1621642
is_relative_jump 26506
is_two_element_slice 3562
jump_thread 1741
jump_to_fail_pop 18
label_exception_targets 8041
list2dict 8041
location_is_after 524
location_of_last_executing_statement 192
location_pointer 445463
make_cfg_traversal_stack 39288
make_except_stack 8041
makecode 8041
mark_cold 4163
mark_except_handlers 8041
mark_reachable 8041
mark_warm 4163
maybe_optimize_method_call 26546
maybe_push 204644
merge_const_one 49146
merge_consts_recursive 72196
new_compiler 319
next_swappable_instruction 1174
normalize_jumps 8041
normalize_jumps_in_block 52168
optimize_basic_block 58917
optimize_cfg 8041
optimize_code_unit 8041
pattern_helper_rotate 4
pattern_helper_sequence_subscr 0
pattern_helper_sequence_unpack 5
pattern_helper_store_name 4
pattern_unpack_helper 5
pop_except_block 3949
prepare_localsplus 8041
propagate_line_numbers 8041
push_cold_blocks_to_end 8041
push_except_block 4732
remove_redundant_jumps 9640
remove_redundant_nops 169145
remove_unused_consts 8041
resolve_line_numbers 8041
same_location 342036
scan_block_for_locals 80806
stack_effect 374600
stackdepth 8041
stackdepth_push 61955
starunpack_helper 3075
swaptimize 774
translate_jump_labels_to_targets 8041
unaryop 266
unpack_helper 1134
update_start_location_to_match_attr 41161
validate_keywords 42815
validate_kwd_attrs 0
wrap_in_stopiteration_handler 530
write_except_byte 41949
write_instr 342036
write_location_byte 346578
write_location_first_byte 286095
write_location_info_entry 286095
write_location_info_long_form 39709
write_location_info_no_column 532
write_location_info_none 5971
write_location_info_oneline_form 106695
write_location_info_short_form 133188
write_location_signed_varint 40241
write_location_varint 119127

Generated by: LCOV version 1.14