Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Sandler
0adfc5a755 Further MemoryTracker robustness:
- grab a copy of the tracked processes list in the dumper
- scan running processes when memorytracker starts to catch
  pids that may have survived a crash of the tracker's process
- use RunningServiceInfo to figure out roughly how long a
  service scanned in this way has been alive

Change-Id: I861642f07183e3945f7a7a41e1e5144567e17e13
2013-07-07 23:13:51 -05:00
Daniel Sandler
4de7f739c1 Don't dump hprof for other processes.
dumpHprofData() only works for the current process anyway.

Change-Id: Ic01133880e5149cc6a5ba0a23a1a08e980620f77
2013-07-02 14:17:15 -05:00
Daniel Sandler
f8577a3905 Start the memory dumper directly.
Launching it as an activity from within Launcher is
problematic, so we'll just treat it as a special shortcut
and run the dump when the user clicks that shortcut icon.

Change-Id: Ibe9f4adcaff674f5bafa9b0fc58b5a86cf5ceb00
2013-06-26 14:30:20 -04:00
Daniel Sandler
8540bb8d72 Include all processes in hprof dumps.
The emailed file is now a zipfile containing one .ahprof
file for each process known to MemoryTracker.

Change-Id: If4a73df9afd38756cc01ff37b2d249346e5f7e9f
2013-06-26 14:30:19 -04:00
Daniel Sandler
b9eb2865af Memory tracking is now handled by a service.
Multiple processes may be tracked and viewed simultaneously.

Also, some changes to the graph:
  * show uss and pss together
  * adjust opacity controls

Change-Id: I20eebaa8cc8faf78b46af2a35d71ee538207f02b
2013-06-21 01:16:27 -04:00
Daniel Sandler
a127b7ad15 New icon to dump heap information and share it.
Alternatively,
  $ adb shell am start -n <pkg>/com.android.launcher3.MemoryDumpActivity

Change-Id: I8c615ec3abffaf6ad693c93bdf569550d8f97298
2013-06-17 15:29:22 -04:00