Home
last modified time | relevance | path

Searched refs:pss (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/jni/
Dandroid_os_Debug.cpp150 int pss; member
203 ssize_t pss = memtrack_proc_graphics_pss(p); in read_memtrack_memory() local
204 if (pss < 0) { in read_memtrack_memory()
205 ALOGW("failed to get graphics pss: %zd", pss); in read_memtrack_memory()
206 return pss; in read_memtrack_memory()
208 graphics_mem->graphics = pss / 1024; in read_memtrack_memory()
210 pss = memtrack_proc_gl_pss(p); in read_memtrack_memory()
211 if (pss < 0) { in read_memtrack_memory()
212 ALOGW("failed to get gl pss: %zd", pss); in read_memtrack_memory()
213 return pss; in read_memtrack_memory()
[all …]
Dandroid_util_Process.cpp1107 uint64_t pss; in android_os_Process_getPss() local
1108 if (!proc_mem.SmapsOrRollupPss(&pss)) { in android_os_Process_getPss()
1113 return pss * 1024; in android_os_Process_getPss()
/frameworks/base/tests/NativeProcessesMemoryTest/src/com/android/tests/nativeprocesses/
DNativeProcessesMemoryTest.java199 long pss = sc.nextLong(); in snapMemoryUsage() local
200 return Optional.of(new MemoryMetric(pss, rss, vss)); in snapMemoryUsage()
213 metrics.addTestMetric(processName + "_pss", Long.toString(memoryMetric.pss)); in logMemoryMetric()
220 final long pss; field in NativeProcessesMemoryTest.MemoryMetric
224 MemoryMetric(long pss, long rss, long vss) { in MemoryMetric() argument
225 this.pss = pss; in MemoryMetric()
232 pss + other.pss, rss + other.rss, vss + other.vss); in sum()
/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/
DBootImageProfileTest.java96 String pss = getProperty("profilesystemserver"); in testSystemServerProfile() local
97 boolean profileSystemServer = "true".equals(pss); in testSystemServerProfile()
104 assertTrue("profile system server not enabled: " + pss, profileSystemServer); in testSystemServerProfile()
123 String pss = getProperty("profilesystemserver"); in testSystemServerProfile() local
124 boolean profileSystemServer = "true".equals(pss); in testSystemServerProfile()
131 assertTrue("profile system server not enabled: " + pss, profileSystemServer); in testSystemServerProfile()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java119 long pss = 0; field in ProcessState.PssAggr
123 pss = (long)( (pss*(double)samples) + (newPss*(double)newSamples) ) in add()
572 public void addPss(long pss, long uss, long rss, boolean always, int type, long duration, in addPss() argument
607 mCommonProcess.mPssTable.mergeStats(mCurCombinedState, 1, pss, pss, pss, uss, uss, uss, in addPss()
609 PssTable.mergeStats(mCommonProcess.mTotalRunningPss, 0, 1, pss, pss, pss, uss, uss, uss, in addPss()
621 pss, pss, pss, uss, uss, uss, rss, rss, rss); in addPss()
623 pss, pss, pss, uss, uss, uss, rss, rss, rss); in addPss()
660 public void reportCachedKill(ArrayMap<String, ProcessStateHolder> pkgList, long pss) { in reportCachedKill() argument
662 mCommonProcess.addCachedKill(1, pss, pss, pss); in reportCachedKill()
668 pullFixedProc(pkgList, ip).addCachedKill(1, pss, pss, pss); in reportCachedKill()
[all …]
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java216 int pss = 0; in measureMemory() local
220 pss = getPss(processName); in measureMemory()
221 Log.i(TAG, appName + "=" + pss); in measureMemory()
222 if (pss < 0) { in measureMemory()
226 pssData.add(pss); in measureMemory()
228 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory() local
/frameworks/base/services/core/java/com/android/server/am/
DAppProfiler.java512 long pss = usingCamera ? 0 : Debug.getPss(pid, tmp, null); in collectPssInBackground() local
515 if (pss != 0 && profile.getThread() != null in collectPssInBackground()
520 recordPssSampleLPf(profile, procState, pss, tmp[0], tmp[1], tmp[2], in collectPssInBackground()
562 private void recordPssSampleLPf(ProcessProfileRecord profile, int procState, long pss, long uss, in recordPssSampleLPf() argument
566 profile.getPid(), proc.uid, proc.processName, pss * 1024, uss * 1024, in recordPssSampleLPf()
569 profile.addPss(pss, uss, rss, true, statType, pssDuration); in recordPssSampleLPf()
575 pss, uss, rss, in recordPssSampleLPf()
583 "pss of " + proc.toShortString() + ": " + pss in recordPssSampleLPf()
588 profile.setInitialIdlePss(pss); in recordPssSampleLPf()
590 profile.setLastPss(pss); in recordPssSampleLPf()
[all …]
DProcessMemInfo.java26 long pss; field in ProcessMemInfo
DProcessProfileRecord.java568 void addPss(long pss, long uss, long rss, boolean always, int type, long duration) { in addPss() argument
574 tracker.addPss(pss, uss, rss, always, type, duration, in addPss()
DActivityManagerService.java4238 final long[] pss = new long[pids.length]; in getProcessPss() local
4255 final long pi = pss[i] = Debug.getPss(pids[i], tmpUss, null); in getProcessPss()
4282 return pss; in getProcessPss()
10869 final long pss; field in ActivityManagerService.MemItem
10876 MemItem(String label, String shortLabel, long pss, long swapPss, long rss, int id, in MemItem() argument
10881 this.pss = pss; in MemItem()
10888 MemItem(String label, String shortLabel, long pss, long swapPss, long rss, int id) { in MemItem() argument
10892 this.pss = pss; in MemItem()
10900 private static void sortMemItems(List<MemItem> items, final boolean pss) { in sortMemItems() argument
10904 long lss = pss ? lhs.pss : lhs.mRss; in sortMemItems()
[all …]
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DMetrics.java102 long pss = sc.nextLong(); in sample() local
106 mMetrics.addTestMetric(label + ".system_server.pss", Long.toString(pss)); in sample()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java470 String[]pss = pixel_spacing[0].split("\\\\"); in buildRSVolume() local
473 float sx = Float.parseFloat(pss[0]); in buildRSVolume()
474 float sy = Float.parseFloat(pss[1]); in buildRSVolume()
594 String[]pss = pixel_spacing.split("\\\\"); in buildRSVolume2() local
597 float sx = Float.parseFloat(pss[0]); in buildRSVolume2()
598 float sy = Float.parseFloat(pss[1]); in buildRSVolume2()
/frameworks/base/core/proto/android/app/
Dappexitinfo.proto41 optional int64 pss = 11; field
/frameworks/base/core/proto/android/os/
Dprocrank.proto42 optional int64 pss = 4; field
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DApplicationExitInfoTest.java992 int connectionGroup, int procState, long pss, long rss, in makeProcessRecord() argument
1008 app.mProfile.setLastPss(pss); in makeProcessRecord()
1017 Long pss, Long rss, Integer importance, String description) { in verifyApplicationExitInfo() argument
1052 if (pss != null) { in verifyApplicationExitInfo()
1053 assertEquals(pss.longValue(), info.getPss()); in verifyApplicationExitInfo()
/frameworks/base/core/proto/android/service/
Dprocstats.proto66 // whether kernel reports swapped pss.
136 optional android.util.AggStats pss = 6; field
/frameworks/base/core/java/android/app/
DApplicationExitInfo.java895 public void setPss(final long pss) { in setPss() argument
896 mPss = pss; in setPss()
DActivityThread.java3150 int pss, int cleanPss, int sharedDirty, int privateDirty, in dumpMemoryInfo() argument
3156 proto.write(MemInfoDumpProto.ProcessMemory.MemoryInfo.TOTAL_PSS_KB, pss); in dumpMemoryInfo()
/frameworks/base/core/proto/android/server/
Dactivitymanagerservice.proto339 // The maximum pss size in kb that we consider a process acceptable to restore
/frameworks/proto_logging/stats/
Datoms.proto1247 * Logs when a cached process is killed, along with its pss.
1258 optional int64 pss = 4; field
1591 optional int64 pss = 4; field
8392 optional AggStats pss = 6 [deprecated = true]; field
8555 // whether kernel reports swapped pss.
19120 optional int32 pss = 6; field