Garmaine Staff asked 2 years ago

I want to count how many times a function is called overall in my program. The method is called in different objects and I dont want to pass one variable through and let them all add to it.
Is there a feature in the IntelliJ Debugger that's counts how often a function is called overall?

Specificially, my program is a search-tree algorithm for a graph-problem and I want to count, how many different branches the generated search-tree has. Each of these branches corresponds to a call of the mentioned function.