实时统计Android应用的CPU和内存占用
// 100L为采样周期,单位ms Sampler.getInstance().init(getApplicationContext(), 100L); Sampler.getInstance().start();