CNDCallGraphUserView

Call Graph User View

User

  1. Any user that investigates the code.
  2. Any user that refactors the code.

Issue the feature solves

  1. View what the function calls recursive (callees). It is like repeated recursive actions "goto a function from a call by the hyper link and go back".
  2. View where the function is called recursive (callers). It is like repeated actions "find usages of the function".

Scenarios

  1. User (user 1) try to understand the function behavior. User selects the function name in the code and asks IDE to show all functions that are called from the function (issue 1). For full understanding user can ask IDE about callees of callees recursive.
  2. User (user 2) refactors function. Before refactoring user try to understand how the function is called. For full understanding user want to see direct function's callers and callers of callers recursive (issue 2). User selects the function name in the code and asks IDE to show all functions that call the function.

Feature specification

User UI is NetBeans bean tree view

  • node is function
  • node children are callees (scenario 1) or callers (scenario 2)
  • tree view has buttons to switch graph scenarios
  • tree view supports multiply tabs (as the find usages does)

Limitations

  • Call graph is static.
  • Call graph does not show indirect function calls added by compiler.

Screen shots

Window menu

http://wiki.netbeans.org/attach/CNDCallGraphUserView/window_menu_CNDCallGraphUserView.png

Editor popup menu

http://wiki.netbeans.org/attach/CNDCallGraphUserView/popup_menu_CNDCallGraphUserView.png

Direct call graph (scenario 1)

http://wiki.netbeans.org/attach/CNDCallGraphUserView/direct_callgraph_CNDCallGraphUserView.png

Reverse call graph (scenario 2)

http://wiki.netbeans.org/attach/CNDCallGraphUserView/reverse_callgraph_CNDCallGraphUserView.png

Call graph popup menu

http://wiki.netbeans.org/attach/CNDCallGraphUserView/callgraph_popup_menu_CNDCallGraphUserView.png

Picture call graph (available as additional NB plug-in)

http://wiki.netbeans.org/attach/CNDCallGraphUserView/picture_callgraph_CNDCallGraphUserView.png

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo