title: How do I use adb command get the terminal output?
body: <p>I want to get cpu usage of the phone and then draw on PC.</p>
  
  <p>I want to do like this:</p>
  
  <p>First, run a background process in the phone which caculate the CPU usage and show in terminal.</p>
  
  <p>Second, use adb commnad to get the terminal output.</p>
  
  <p>Finally, draw curve with data.</p>
  
  <p>I'm confused wheather it will work normally without big latency.
  At first, I want to put the cpu usage into a file, and use command of 'adb pull' to pull the file, then read the file and draw. I thought this may cause big latency.</p>
  
  <p>Does anyone could help me?</p>
  
  <p>Thanks.
  James.</p>