Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_os_Debug.cpp113 int pss; member
175 ssize_t pss = memtrack_proc_graphics_pss(p); in read_memtrack_memory() local
176 if (pss < 0) { in read_memtrack_memory()
177 ALOGW("failed to get graphics pss: %zd", pss); in read_memtrack_memory()
178 return pss; in read_memtrack_memory()
180 graphics_mem->graphics = pss / 1024; in read_memtrack_memory()
182 pss = memtrack_proc_gl_pss(p); in read_memtrack_memory()
183 if (pss < 0) { in read_memtrack_memory()
184 ALOGW("failed to get gl pss: %zd", pss); in read_memtrack_memory()
185 return pss; in read_memtrack_memory()
[all …]
Dandroid_util_Process.cpp905 jlong pss = 0; in android_os_Process_getPss() local
909 pss += v; in android_os_Process_getPss()
916 return pss * 1024; in android_os_Process_getPss()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java213 int pss = 0; in measureMemory() local
217 pss = getPss(processName); in measureMemory()
218 Log.i(TAG, appName + "=" + pss); in measureMemory()
219 if (pss < 0) { in measureMemory()
223 pssData.add(pss); in measureMemory()
225 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory() local
/frameworks/base/services/core/java/com/android/server/am/
DProcessMemInfo.java26 long pss; field in ProcessMemInfo
DActivityManagerService.java1621 long pss = Debug.getPss(st.pid, null); in handleMessage()
1622 if (pss > 0) { in handleMessage()
1626 mi.pss = pss; in handleMessage()
1637 if (mi.pss == 0) { in handleMessage()
1638 mi.pss = Debug.getPss(mi.pid, null); in handleMessage()
1640 totalPss += mi.pss; in handleMessage()
1647 if (lhs.pss != rhs.pss) { in handleMessage()
1648 return lhs.pss < rhs.pss ? 1 : -1; in handleMessage()
1691 appendMemBucket(tag, mi.pss, mi.name, false); in handleMessage()
1693 appendMemBucket(stack, mi.pss, mi.name, true); in handleMessage()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DProcessStats.java661 long pss = 0; field in ProcessStats.PssAggr
665 pss = (long)( (pss*(double)samples) + (newPss*(double)newSamples) ) in add()
764 fgPss.add(bgPss.pss, bgPss.samples); in computeTotalMemoryUse()
768 fgPss.add(cachedPss.pss, cachedPss.samples); in computeTotalMemoryUse()
772 bgPss.add(cachedPss.pss, cachedPss.samples); in computeTotalMemoryUse()
775 bgPss.add(fgPss.pss, fgPss.samples); in computeTotalMemoryUse()
778 cachedPss.add(bgPss.pss, bgPss.samples); in computeTotalMemoryUse()
781 cachedPss.add(fgPss.pss, fgPss.samples); in computeTotalMemoryUse()
798 avg = fgPss.pss; in computeTotalMemoryUse()
801 avg = bgPss.pss; in computeTotalMemoryUse()
[all …]
/frameworks/base/core/java/android/app/
DActivityManagerNative.java1987 long[] pss = getProcessPss(pids); in onTransact() local
1989 reply.writeLongArray(pss); in onTransact()