diff options
author | Dianne Hackborn <hackbod@google.com> | 2013-08-09 23:19:07 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-09 23:19:07 +0000 |
commit | b0037316c4bbaf9d5b3ee8af563caf2539def564 (patch) | |
tree | e13b27206d4a08a7bdd20f53d055d94fc1451b77 /services/java/com | |
parent | 2b2d313e865e8aae3296257ed852374b15fa05ad (diff) | |
parent | 69cb00b8dda60eff7449b69723f4e73a28e944f8 (diff) | |
download | frameworks_base-b0037316c4bbaf9d5b3ee8af563caf2539def564.zip frameworks_base-b0037316c4bbaf9d5b3ee8af563caf2539def564.tar.gz frameworks_base-b0037316c4bbaf9d5b3ee8af563caf2539def564.tar.bz2 |
Merge "More stuff I need for the proc stats UI." into klp-dev
Diffstat (limited to 'services/java/com')
-rw-r--r-- | services/java/com/android/server/am/ProcessStatsService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/java/com/android/server/am/ProcessStatsService.java b/services/java/com/android/server/am/ProcessStatsService.java index 6611a24..4ba26fb 100644 --- a/services/java/com/android/server/am/ProcessStatsService.java +++ b/services/java/com/android/server/am/ProcessStatsService.java @@ -435,6 +435,12 @@ public final class ProcessStatsService extends IProcessStats.Stub { return current.marshall(); } + public int getCurrentMemoryState() { + synchronized (mAm) { + return mLastMemOnlyState; + } + } + static private void dumpHelp(PrintWriter pw) { pw.println("Process stats (procstats) dump options:"); pw.println(" [--checkin|-c|--csv] [--csv-screen] [--csv-proc] [--csv-mem]"); |