Skip to content

Commit a6e53bb

Browse files
committed
chore(callgrind): log new_fn_node creation with fn and obj name
Fires once per fn_node, before any call edge is built. Lets us see the exact obj path string Callgrind stores for a function (e.g. PyEval) so we can compare it against the obj_skip list independently of any strcmp result.
1 parent 81689f2 commit a6e53bb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

callgrind/fn.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,10 @@ fn_node* new_fn_node(const HChar *fnname,
511511
fn->toggle_collect = False;
512512
fn->skip = False;
513513
fn->obj_skip_checked = False;
514+
515+
VG_(message)(Vg_UserMsg, "new_fn_node: fn='%s' obj='%s'\n",
516+
fn->name,
517+
(file && file->obj && file->obj->name) ? file->obj->name : "(null)");
514518
fn->pop_on_jump = CLG_(clo).pop_on_jump;
515519
fn->is_malloc = False;
516520
fn->is_realloc = False;

0 commit comments

Comments
 (0)