Merge "skip reading vmallocinfo if not needed" into qt-r1-dev
This commit is contained in:
@@ -575,7 +575,7 @@ static void android_os_Debug_getMemInfo(JNIEnv *env, jobject clazz, jlongArray o
|
|||||||
if (outArray != NULL) {
|
if (outArray != NULL) {
|
||||||
outLen = MEMINFO_COUNT;
|
outLen = MEMINFO_COUNT;
|
||||||
for (int i = 0; i < outLen; i++) {
|
for (int i = 0; i < outLen; i++) {
|
||||||
if (i == MEMINFO_VMALLOC_USED) {
|
if (i == MEMINFO_VMALLOC_USED && mem[i] == 0) {
|
||||||
outArray[i] = smi.ReadVmallocInfo() / 1024;
|
outArray[i] = smi.ReadVmallocInfo() / 1024;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user