How do I use adb command get the terminal output?

Viewed 13793

I want to get cpu usage of the phone and then draw on PC.

I want to do like this:

First, run a background process in the phone which caculate the CPU usage and show in terminal.

Second, use adb commnad to get the terminal output.

Finally, draw curve with data.

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.

Does anyone could help me?

Thanks. James.

2 Answers
Related