title: How to measure total time spent in a function?
body: <p>I have a utility function that I suspect is eating up a large portion of my application's execution time. Using Time Profiler to look at the call stack, this function takes up a large portion of the execution time of any function from which it is called. However, since this utility function is called from many different sources, I am having trouble  determining if, overall, this is the best use of my optimization time.</p>
  
  <p>How can I look at total time spent in this function during program execution, regardless of who called it?</p>
  
  <p>For clarity, I want to combine the selected entries with all other calls to that function into a single entry:
  <img src="https://i.stack.imgur.com/oxRkh.png" alt="Profiler Log"></p>