title: How to profile a bare metal source code on ARM platform?
body: <p>How can I profile my ARM code on a device.</p>
  
  <p>It is a bare metal code involves USB and SDH handling, I saw this <a href="https://stackoverflow.com/questions/1340056/code-profiler-for-arm">Code Profiler for ARM</a> but seems to be very slim, I am familiar with <a href="http://www.arm.com/products/tools/software-tools/ds-5/index.php" rel="nofollow noreferrer">DS5</a> but most of its tools can be used if you are on platform with linux kernel based OS. I compile my code with <code>gcc</code>.</p>
  
  <ol>
  <li>My code runs on Cortex-A7 and/or Cortex-A15 cores.</li>
  <li>As it seems from <a href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0414d/DUI0414D_rvp_user_guide.pdf" rel="nofollow noreferrer">here</a> those CPUs <strong>aren't</strong> arm profiler
  supported.</li>
  </ol>