summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-08-09 23:19:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-09 23:19:07 +0000
commitb0037316c4bbaf9d5b3ee8af563caf2539def564 (patch)
treee13b27206d4a08a7bdd20f53d055d94fc1451b77 /services
parent2b2d313e865e8aae3296257ed852374b15fa05ad (diff)
parent69cb00b8dda60eff7449b69723f4e73a28e944f8 (diff)
downloadframeworks_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')
-rw-r--r--services/java/com/android/server/am/ProcessStatsService.java6
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]");