title: Idiomatic way of performance evaluation?
body: <p>I am evaluating a network+rendering workload for my project.</p>
  
  <p>The program continuously runs a main loop:</p>
  
  <pre><code>while (true) {
     doSomething()
     drawSomething()
     doSomething2()
     sendSomething()
  }
  </code></pre>
  
  <p>The main loop runs more than 60 times per second.</p>
  
  <p>I want to see the performance breakdown, how much time each procedure takes.</p>
  
  <p>My concern is that if I print the time interval for every entrance and exit of each procedure,</p>
  
  <p>It would incur huge performance overhead.</p>
  
  <p>I am curious what is an idiomatic way of measuring the performance.</p>
  
  <p>Printing of logging is good enough?</p>