1. 程式人生 > >emmagee 效能工具梳理

emmagee 效能工具梳理

入口:
com.netease.qa.emmagee.activity.MainPageActivity:

ProcessInfo
UpdateReceiver
Settings.getDefaultWakeLock(this).acquireFullWakeLock()
EmmageeService

pid

uid

ListAdapter.checkedProg.getPackageName()
ListAdapter.checkedProg.getProcessName()

pid = processInfo.getPidByPackageName(getBaseContext(), packageName)

monitorService.putExtra("processName"
, processName); monitorService.putExtra("pid", pid); monitorService.putExtra("uid", uid); monitorService.putExtra("packageName", packageName); monitorService.putExtra("startActivity", startActivity); startService(monitorService);
UpdateReceiver()
registerReceiver(receiver, filter)
com.netease.qa.emmagee.utils.CpuInfo:
MemoryInfo
TrafficInfo
EmmageeService.bw.write(
com.netease.qa.emmagee.utils.FpsInfo:
service call SurfaceFlinger 1013
com.netease.qa.emmagee.utils.MemoryInfo:
com.netease.qa.emmagee.utils.ProcessInfo:
getPidByPackageName(Context context, String packageName)
com.netease.qa.emmagee.utils.TrafficInfo:流量
com.netease.qa.emmagee.service.EmmageeService:
uid = intent.getExtras().getInt("uid");
ApplicationInfo ainfo = pm.getApplicationInfo(packageName, PackageManager.GET_ACTIVITIES);
uid = ainfo.uid