From a046f896509e28a86bb7158be4fa4ec80366ade4 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Thu, 20 Jul 2017 19:42:56 -0700 Subject: [PATCH] Do not show base calls in tree view that come from derived function. --- src/query_utils.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/query_utils.cc b/src/query_utils.cc index d75fde0d..363a7fd1 100644 --- a/src/query_utils.cc +++ b/src/query_utils.cc @@ -763,8 +763,13 @@ NonElidedVector BuildExpandCallTree(QueryDatabase for (QueryFuncRef caller : root_func->callers) handle_caller("", caller); - for (QueryFuncRef caller : base_callers) + for (QueryFuncRef caller : base_callers) { + // Do not show calls to the base function coming from this function. + if (caller.id_ == root) + continue; + handle_caller("[B] ", caller); + } for (QueryFuncRef caller : derived_callers) handle_caller("[D] ", caller);