id: 1 unit: void print_stack_trace() file: profiler/stack_printer.cpp start line: 196 end line: 397 size: 178 LOC McCabe index: 53 number of parameters: 3 id: 2 unit: int main() file: profiler/profile.cpp start line: 338 end line: 502 size: 139 LOC McCabe index: 26 number of parameters: 2 id: 3 unit: static error_t parse_arg() file: profiler/profile.cpp start line: 101 end line: 216 size: 115 LOC McCabe index: 31 number of parameters: 3 id: 4 unit: off_t get_elf_func_offset() file: helpers/uprobe_helpers.c start line: 224 end line: 289 size: 61 LOC McCabe index: 21 number of parameters: 2 id: 5 unit: static int create_tmp_vdso_image() file: helpers/trace_helpers.c start line: 529 end line: 593 size: 58 LOC McCabe index: 13 number of parameters: 1 id: 6 unit: static int fix_lua_stack() file: profiler/profile.bpf.c start line: 105 end line: 160 size: 47 LOC McCabe index: 10 number of parameters: 3 id: 7 unit: static int syms__add_dso() file: helpers/trace_helpers.c start line: 314 end line: 362 size: 46 LOC McCabe index: 11 number of parameters: 3 id: 8 unit: typedef LJ_ALIGN() file: profiler/lua_state.h start line: 172 end line: 216 size: 45 LOC McCabe index: 1 number of parameters: 1 id: 9 unit: bool kprobe_exists() file: helpers/trace_helpers.c start line: 1071 end line: 1119 size: 43 LOC McCabe index: 13 number of parameters: 1 id: 10 unit: int do_perf_event() file: profiler/profile.bpf.c start line: 163 end line: 214 size: 41 LOC McCabe index: 15 number of parameters: 1 id: 11 unit: int get_pid_lib_path() file: helpers/uprobe_helpers.c start line: 53 end line: 94 size: 37 LOC McCabe index: 10 number of parameters: 4 id: 12 unit: static int open_and_attach_perf_event() file: profiler/profile.cpp start line: 220 end line: 259 size: 36 LOC McCabe index: 7 number of parameters: 3 id: 13 unit: static bool read_counts_map() file: profiler/stack_printer.cpp start line: 87 end line: 129 size: 36 LOC McCabe index: 10 number of parameters: 3 id: 14 unit: static inline int lua_get_funcdata() file: profiler/profile.bpf.c start line: 69 end line: 103 size: 35 LOC McCabe index: 8 number of parameters: 4 id: 15 unit: static int ksyms__add_symbol() file: helpers/trace_helpers.c start line: 47 end line: 86 size: 35 LOC McCabe index: 8 number of parameters: 3 id: 16 unit: static bool read_batch_counts_map() file: profiler/stack_printer.cpp start line: 47 end line: 85 size: 34 LOC McCabe index: 7 number of parameters: 3 id: 17 unit: static void print_fold_lua_func() file: profiler/stack_printer.cpp start line: 131 end line: 164 size: 34 LOC McCabe index: 8 number of parameters: 2 id: 18 unit: void print_log2_hist() file: helpers/trace_helpers.c start line: 914 end line: 951 size: 33 LOC McCabe index: 11 number of parameters: 3 id: 19 unit: bool fentry_can_attach() file: helpers/trace_helpers.c start line: 1034 end line: 1069 size: 33 LOC McCabe index: 6 number of parameters: 2 id: 20 unit: static int get_elf_text_scn_info() file: helpers/trace_helpers.c start line: 278 end line: 312 size: 31 LOC McCabe index: 7 number of parameters: 3 id: 21 unit: static int dso__load_sym_table_from_elf() file: helpers/trace_helpers.c start line: 487 end line: 527 size: 31 LOC McCabe index: 9 number of parameters: 2 id: 22 unit: static int attach_lua_uprobes() file: profiler/profile.cpp start line: 303 end line: 336 size: 30 LOC McCabe index: 6 number of parameters: 2 id: 23 unit: static void print_fold_user_stack_with_lua() file: profiler/stack_printer.cpp start line: 166 end line: 194 size: 29 LOC McCabe index: 6 number of parameters: 4 id: 24 unit: static int dso__add_sym() file: helpers/trace_helpers.c start line: 398 end line: 429 size: 27 LOC McCabe index: 5 number of parameters: 4 id: 25 unit: static int dso__add_syms() file: helpers/trace_helpers.c start line: 440 end line: 474 size: 27 LOC McCabe index: 9 number of parameters: 5 id: 26 unit: void print_linear_hist() file: helpers/trace_helpers.c start line: 953 end line: 980 size: 25 LOC McCabe index: 7 number of parameters: 5 id: 27 unit: static int which_program() file: helpers/uprobe_helpers.c start line: 100 end line: 123 size: 22 LOC McCabe index: 4 number of parameters: 3 id: 28 unit: int get_pid_binary_path() file: helpers/uprobe_helpers.c start line: 24 end line: 46 size: 21 LOC McCabe index: 4 number of parameters: 3 id: 29 unit: bool is_kernel_module() file: helpers/trace_helpers.c start line: 990 end line: 1011 size: 19 LOC McCabe index: 5 number of parameters: 1 id: 30 unit: void lua_stack_map::insert_lua_stack_map() file: profiler/lua_stacks_map.cpp start line: 4 end line: 20 size: 17 LOC McCabe index: 3 number of parameters: 1 id: 31 unit: static int get_elf_type() file: helpers/trace_helpers.c start line: 259 end line: 276 size: 17 LOC McCabe index: 4 number of parameters: 1 id: 32 unit: int resolve_binary_path() file: helpers/uprobe_helpers.c start line: 136 end line: 158 size: 17 LOC McCabe index: 5 number of parameters: 4 id: 33 unit: static int partitions__add_partition() file: helpers/trace_helpers.c start line: 801 end line: 818 size: 16 LOC McCabe index: 2 number of parameters: 3 id: 34 unit: static bool fentry_try_attach() file: helpers/trace_helpers.c start line: 1013 end line: 1032 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 35 unit: static int probe_entry_lua() file: profiler/profile.bpf.c start line: 239 end line: 256 size: 15 LOC McCabe index: 4 number of parameters: 1 id: 36 unit: int lua_stack_map::get_lua_stack_backtrace() file: profiler/lua_stacks_map.cpp start line: 23 end line: 37 size: 15 LOC McCabe index: 3 number of parameters: 2 id: 37 unit: static int probe_entry_lua_cancel() file: profiler/profile.bpf.c start line: 216 end line: 231 size: 14 LOC McCabe index: 5 number of parameters: 1 id: 38 unit: static void print_stars() file: helpers/trace_helpers.c start line: 897 end line: 912 size: 14 LOC McCabe index: 4 number of parameters: 3 id: 39 unit: static bool is_file_backed() file: helpers/trace_helpers.c start line: 234 end line: 247 size: 13 LOC McCabe index: 8 number of parameters: 1 id: 40 unit: static int dso__load_sym_table() file: helpers/trace_helpers.c start line: 604 end line: 615 size: 12 LOC McCabe index: 6 number of parameters: 1 id: 41 unit: void syms__free() file: helpers/trace_helpers.c start line: 703 end line: 714 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 42 unit: void syms_cache__free() file: helpers/trace_helpers.c start line: 763 end line: 774 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 43 unit: void partitions__free() file: helpers/trace_helpers.c start line: 858 end line: 869 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 44 unit: bool module_btf_exists() file: helpers/trace_helpers.c start line: 1128 end line: 1138 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 45 unit: extern void LJ_ASSERT_NAME() file: profiler/lua_state.h start line: 100 end line: 110 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 46 unit: static void dso__free_fields() file: helpers/trace_helpers.c start line: 476 end line: 485 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 47 unit: void ksyms__free() file: helpers/trace_helpers.c start line: 139 end line: 147 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 48 unit: static int ksym_cmp() file: helpers/trace_helpers.c start line: 88 end line: 95 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 49 unit: static int sym_cmp() file: helpers/trace_helpers.c start line: 431 end line: 438 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 50 unit: static int dso__load_sym_table_from_vdso_image() file: helpers/trace_helpers.c start line: 595 end line: 602 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 51 unit: static int libbpf_print_fn() file: profiler/profile.cpp start line: 261 end line: 266 size: 6 LOC McCabe index: 3 number of parameters: 3 id: 52 unit: static __always_inline BCIns frame_pc_prev() file: profiler/lua_state.h start line: 775 end line: 780 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 53 unit: static int cmp_counts() file: profiler/stack_printer.cpp start line: 38 end line: 43 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 54 unit: unsigned long long get_ktime_ns() file: helpers/trace_helpers.c start line: 982 end line: 988 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 55 unit: bool vmlinux_btf_exists() file: helpers/trace_helpers.c start line: 1121 end line: 1126 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 56 unit: static void handle_lua_stack_event() file: profiler/profile.cpp start line: 273 end line: 277 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 57 unit: void close_elf() file: helpers/uprobe_helpers.c start line: 217 end line: 221 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 58 unit: static __always_inline bool is_kernel_addr() file: profiler/profile.bpf.c start line: 58 end line: 61 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: static __always_inline bool is_kernel_addr() file: profiler/profile.bpf.c start line: 63 end line: 66 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 60 unit: int handle_entry_lua_cancel() file: profiler/profile.bpf.c start line: 234 end line: 237 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: int handle_entry_lua() file: profiler/profile.bpf.c start line: 259 end line: 262 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 62 unit: static void sig_handler() file: profiler/profile.cpp start line: 268 end line: 271 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 63 unit: static void handle_lua_stack_lost_events() file: profiler/profile.cpp start line: 279 end line: 282 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 64 unit: static int stack_id_err() file: profiler/stack_printer.cpp start line: 33 end line: 36 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 65 unit: static bool is_perf_map() file: helpers/trace_helpers.c start line: 249 end line: 252 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 66 unit: static bool is_vdso() file: helpers/trace_helpers.c start line: 254 end line: 257 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 67 unit: static int dso__load_sym_table_from_perf_map() file: helpers/trace_helpers.c start line: 393 end line: 396 size: 4 LOC McCabe index: 1 number of parameters: 1