Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_os_Debug.cpp148 int pss; member
201 ssize_t pss = memtrack_proc_graphics_pss(p); in read_memtrack_memory() local
202 if (pss < 0) { in read_memtrack_memory()
203 ALOGW("failed to get graphics pss: %zd", pss); in read_memtrack_memory()
204 return pss; in read_memtrack_memory()
206 graphics_mem->graphics = pss / 1024; in read_memtrack_memory()
208 pss = memtrack_proc_gl_pss(p); in read_memtrack_memory()
209 if (pss < 0) { in read_memtrack_memory()
210 ALOGW("failed to get gl pss: %zd", pss); in read_memtrack_memory()
211 return pss; in read_memtrack_memory()
[all …]
Dandroid_util_Process.cpp1098 uint64_t pss; in android_os_Process_getPss() local
1099 if (!proc_mem.SmapsOrRollupPss(&pss)) { in android_os_Process_getPss()
1104 return pss * 1024; in android_os_Process_getPss()
/frameworks/base/cmds/statsd/tools/loadtest/
Drun_loadtest.sh6 pss=""
36 pss=$(echo "${BASH_REMATCH[1]}" | tr -d , | sed 's/\.//g')
67 echo "Before the test, statsd's PSS is ${pss}"
78 echo "During the test, statsd's PSS is ${pss}"
79 values+=(${pss})
/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/packages/SystemUI/src/com/android/systemui/util/leak/
DGarbageMonitor.java206 info.pss[info.head] = info.currentPss = dinfo.getTotalPss(); in update()
208 info.head = (info.head + 1) % info.pss.length; in update()
273 long pss, limit; field in GarbageMonitor.MemoryIconDrawable
284 public void setPss(long pss) { in setPss() argument
285 if (pss != this.pss) { in setPss()
286 this.pss = pss; in setPss()
302 if (limit > 0 && pss > 0) { in draw()
303 float frac = Math.min(1f, (float) pss / limit); in draw()
364 long pss, limit; field in GarbageMonitor.MemoryGraphIcon
366 public void setPss(long pss) { in setPss() argument
[all …]
DDumpTruck.java56 private long pss; field in DumpTruck
95 pss = info.currentPss; in captureHeaps()
150 String.format("SystemUI memory dump (pss=%dM)", pss / 1024)); in createShareIntent()
/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/
DBootImageProfileTest.java92 String pss = getProperty("profilesystemserver"); in testSystemServerProfile() local
93 boolean profileSystemServer = "true".equals(pss); in testSystemServerProfile()
98 assertTrue("profile system server not enabled: " + pss, profileSystemServer); in testSystemServerProfile()
115 String pss = getProperty("profilesystemserver"); in testSystemServerProfile() local
116 boolean profileSystemServer = "true".equals(pss); in testSystemServerProfile()
121 assertTrue("profile system server not enabled: " + pss, profileSystemServer); in testSystemServerProfile()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java113 long pss = 0; field in ProcessState.PssAggr
117 pss = (long)( (pss*(double)samples) + (newPss*(double)newSamples) ) in add()
503 public void addPss(long pss, long uss, long rss, boolean always, int type, long duration, in addPss() argument
538 mCommonProcess.mPssTable.mergeStats(mCurCombinedState, 1, pss, pss, pss, uss, uss, uss, in addPss()
540 PssTable.mergeStats(mCommonProcess.mTotalRunningPss, 0, 1, pss, pss, pss, uss, uss, uss, in addPss()
552 pss, pss, pss, uss, uss, uss, rss, rss, rss); in addPss()
554 pss, pss, pss, uss, uss, uss, rss, rss, rss); in addPss()
591 public void reportCachedKill(ArrayMap<String, ProcessStateHolder> pkgList, long pss) { in reportCachedKill() argument
593 mCommonProcess.addCachedKill(1, pss, pss, pss); in reportCachedKill()
599 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/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/services/core/java/com/android/server/am/
DProcessMemInfo.java26 long pss; field in ProcessMemInfo
DActivityManagerService.java2001 long pss = Debug.getPss(pid, tmp, null);
2004 if (pss != 0 && proc.thread != null && proc.setProcState == procState
2008 recordPssSampleLocked(proc, procState, pss, tmp[0], tmp[1], tmp[2],
4463 long[] pss = new long[pids.length]; in getProcessPss() local
4480 pss[i] = Debug.getPss(pids[i], tmpUss, null); in getProcessPss()
4486 proc.baseProcessTracker.addPss(pss[i], tmpUss[0], tmpUss[2], false, in getProcessPss()
4494 pss[i], tmpUss[0], tmpUss[2], in getProcessPss()
4502 return pss; in getProcessPss()
12094 final long pss; field in ActivityManagerService.MemItem
12105 pss = _pss; in MemItem()
[all …]
DOomAdjuster.java1862 long pss = Debug.getPss(app.pid, mTmpLong, null); in applyOomAdjLocked() local
1864 mService.recordPssSampleLocked(app, app.getCurProcState(), pss, in applyOomAdjLocked()
/frameworks/base/core/proto/android/os/
Dprocrank.proto42 optional int64 pss = 4; field
/frameworks/base/core/proto/android/service/
Dprocstats.proto66 // whether kernel reports swapped pss.
129 optional android.util.AggStats pss = 6; field
/frameworks/base/core/proto/android/server/
Dactivitymanagerservice.proto411 // The maximum pss size in kb that we consider a process acceptable to restore
/frameworks/base/cmds/statsd/src/
Datoms.proto619 * Logs when a cached process is killed, along with its pss.
630 optional int64 pss = 4; field
645 optional int64 pss = 4; field
5054 optional AggStats pss = 6; field
5195 // whether kernel reports swapped pss.
/frameworks/base/core/java/android/app/
DActivityThread.java2804 int pss, int cleanPss, int sharedDirty, int privateDirty, in dumpMemoryInfo() argument
2810 proto.write(MemInfoDumpProto.ProcessMemory.MemoryInfo.TOTAL_PSS_KB, pss); in dumpMemoryInfo()