title: Detecting Memory and CPU consumption of a particluar app
body: <p>I want to detect the <strong>Memory</strong> and <strong>CPU</strong> <strong>consumption</strong> of a <strong>particular app</strong> in <strong>android</strong> (programmatically), can any one help me with it. I have tried the TOP method, but i want an alternative for it. </p>
  
  <p>Any help will be appreciated, thanks :)</p>