Does MPLAB X have a call-graph analysis tool?
During code editing, you have the possibility to view the call
graph:




Video: MPLAB X TV Call Graph


During debugging, you have the possibility to view the call
stack:



  The call stack window provides a way to view the subroutine calls and
  interrupts that have occurred to bring the program to its current
  position.
  
  To view the call stack, select from the main menu: Window ▸ Debugging
  ▸ Call Stack or use the keyboard shortcut Alt+Shift+3.