/aosp14/frameworks/base/services/core/java/com/android/server/stats/pull/ |
H A D | SystemMemoryUtil.java | 19 import android.os.Debug; 34 long[] mInfos = new long[Debug.MEMINFO_COUNT]; in getMetrics() 35 Debug.getMemInfo(mInfos); in getMetrics() 45 long accountedKb = mInfos[Debug.MEMINFO_FREE] in getMetrics() 46 + mInfos[Debug.MEMINFO_ZRAM_TOTAL] in getMetrics() 47 + mInfos[Debug.MEMINFO_BUFFERS] in getMetrics() 48 + mInfos[Debug.MEMINFO_ACTIVE] in getMetrics() 49 + mInfos[Debug.MEMINFO_INACTIVE] in getMetrics() 50 + mInfos[Debug.MEMINFO_UNEVICTABLE] in getMetrics() 54 + mInfos[Debug.MEMINFO_PAGE_TABLES]; in getMetrics() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | MemInfoReader.java | 21 import android.os.Debug; 38 Debug.getMemInfo(mInfos); in readMemInfo() 49 return mInfos[Debug.MEMINFO_TOTAL] * 1024; in getTotalSize() 57 return mInfos[Debug.MEMINFO_FREE] * 1024; in getFreeSize() 80 return mInfos[Debug.MEMINFO_TOTAL]; in getTotalSizeKb() 87 return mInfos[Debug.MEMINFO_FREE]; in getFreeSizeKb() 104 + mInfos[Debug.MEMINFO_CACHED] - mInfos[Debug.MEMINFO_MAPPED]; in getCachedSizeKb() 111 long size = mInfos[Debug.MEMINFO_SHMEM] + mInfos[Debug.MEMINFO_SLAB_UNRECLAIMABLE] in getKernelUsedSizeKb() 112 + mInfos[Debug.MEMINFO_VM_ALLOC_USED] + mInfos[Debug.MEMINFO_PAGE_TABLES]; in getKernelUsedSizeKb() 113 if (!Debug.isVmapStack()) { in getKernelUsedSizeKb() [all …]
|
/aosp14/frameworks/base/tools/preload/loadclass/ |
H A D | LoadClass.java | 17 import android.os.Debug; 34 Debug.startAllocCounting(); in main() 51 int allocCount = Debug.getGlobalAllocCount(); in main() 52 int allocSize = Debug.getGlobalAllocSize(); in main() 53 int freedCount = Debug.getGlobalFreedCount(); in main() 54 int freedSize = Debug.getGlobalFreedSize(); in main() 55 long nativeHeapSize = Debug.getNativeHeapSize(); in main() 57 Debug.stopAllocCounting(); in main() 62 Debug.MemoryInfo memoryInfo = new Debug.MemoryInfo(); in main() 63 Debug.getMemoryInfo(memoryInfo); in main()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | PerformanceCollector.java | 495 long nativeMax = Debug.getNativeHeapSize() / 1024; in endPerformanceSnapshot() 496 long nativeAllocated = Debug.getNativeHeapAllocatedSize() / 1024; in endPerformanceSnapshot() 497 long nativeFree = Debug.getNativeHeapFreeSize() / 1024; in endPerformanceSnapshot() 499 Debug.MemoryInfo memInfo = new Debug.MemoryInfo(); in endPerformanceSnapshot() 500 Debug.getMemoryInfo(memInfo); in endPerformanceSnapshot() 554 Debug.resetAllCounts(); in startAllocCounting() 557 Debug.startAllocCounting(); in startAllocCounting() 567 Debug.stopAllocCounting(); in stopAllocCounting() 575 results.putLong(METRIC_KEY_GLOBAL_ALLOC_COUNT, Debug.getGlobalAllocCount()); in getAllocCounts() 576 results.putLong(METRIC_KEY_GLOBAL_ALLOC_SIZE, Debug.getGlobalAllocSize()); in getAllocCounts() [all …]
|
H A D | Debug.aidl | 19 parcelable Debug.MemoryInfo;
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | DebugTest.java | 19 import android.os.Debug; 39 return Debug.getCaller(); in callDepth0() 50 return Debug.getCallers(3); in callDepth4() 73 Debug.MemoryInfo info = new Debug.MemoryInfo(); in testGetMemoryInfo() 74 Debug.getMemoryInfo(-1, info); in testGetMemoryInfo()
|
/aosp14/frameworks/base/core/java/android/ddm/ |
H A D | DdmHandleProfiling.java | 20 import android.os.Debug; 116 Debug.startMethodTracing(fileName, bufferSize, flags); in handleMPRS() 130 Debug.stopMethodTracing(); in handleMPRE() 157 Debug.startMethodTracingDdms(bufferSize, flags, false, 0); in handleMPSS() 174 Debug.stopMethodTracing(); in handleMPSEOrSPSE() 189 int result = Debug.getMethodTracingMode(); in handleMPRQ() 211 Debug.startMethodTracingDdms(bufferSize, flags, true, interval); in handleSPSS()
|
H A D | DdmHandleHello.java | 19 import android.os.Debug; 171 if (Debug.waitingForDebugger()) in handleHELO() 183 final String[] vmFeatures = Debug.getVmFeatureList(); in handleFEAT()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/util/ |
H A D | XmlPerfTest.java | 22 import android.os.Debug; 69 Debug.startAllocCounting(); in doWrite() 84 Debug.stopAllocCounting(); in doWrite() 86 results.putLong("threadAllocCount_mean", Debug.getThreadAllocCount() / iterations); in doWrite() 87 results.putLong("threadAllocSize_mean", Debug.getThreadAllocSize() / iterations); in doWrite() 113 Debug.startAllocCounting(); in doRead() 128 Debug.stopAllocCounting(); in doRead() 131 results.putLong("threadAllocCount_mean", Debug.getThreadAllocCount() / iterations); in doRead() 132 results.putLong("threadAllocSize_mean", Debug.getThreadAllocSize() / iterations); in doRead()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowSurfacePlacer.java | 25 import android.os.Debug; 95 + " deferredRequests=" + mDeferredRequests + " " + Debug.getCallers(2, 3)); in continueLayout() 100 Slog.i(TAG, "Cancel continueLayout " + Debug.getCallers(2, 3)); in continueLayout() 139 + Debug.getCallers(3)); in performSurfacePlacementLoop() 223 if (DEBUG) Slog.i(TAG, "Defer requestTraversal " + Debug.getCallers(3)); in requestTraversal()
|
H A D | AppTransition.java | 114 import android.os.Debug; 797 appTransitionOldToString(transit), enter, Debug.getCallers(3)); in loadAnimation() 804 appTransitionOldToString(transit), enter, Debug.getCallers(3)); in loadAnimation() 811 appTransitionOldToString(transit), Debug.getCallers(3)); in loadAnimation() 817 a, appTransitionOldToString(transit), enter, Debug.getCallers(3)); in loadAnimation() 824 a, appTransitionOldToString(transit), Debug.getCallers(3)); in loadAnimation() 833 a, appTransitionOldToString(transit), Debug.getCallers(3)); in loadAnimation() 856 appTransitionOldToString(transit), enter, Debug.getCallers(3)); in loadAnimation() 874 appTransitionOldToString(transit), enter, Debug.getCallers(3)); in loadAnimation() 880 a, appTransitionOldToString(transit), Debug.getCallers(3)); in loadAnimation() [all …]
|
/aosp14/frameworks/base/tools/aapt2/cmd/ |
H A D | Dump.cpp | 189 Debug::PrintTable(table, print_options, printer_); in Action() 280 Debug::DumpResStringPool(&pool, GetPrinter()); in Dump() 305 Debug::PrintStyleGraph(table, target_style); in Dump() 325 Debug::PrintTable(*table, print_options, GetPrinter()); in Dump() 380 Debug::DumpResStringPool(&tree.getStrings(), GetPrinter()); in Dump() 391 Debug::DumpXml(*xml, GetPrinter()); in Dump() 403 Debug::DumpOverlayable(*table, GetPrinter()); in Dump() 576 Debug::DumpChunks(data->data(), data->size(), GetPrinter(), GetDiagnostics()); in Dump()
|
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/ |
H A D | ImeTrackerService.java | 222 + ImeTracker.Debug.phaseToString(phase) + " with " in setFinished() 223 + ImeTracker.Debug.statusToString(status)); in setFinished() 238 + ImeTracker.Debug.phaseToString(entry.mPhase) + " with " in setFinished() 239 + ImeTracker.Debug.statusToString(status)); in setFinished() 283 pw.print(" " + ImeTracker.Debug.typeToString(entry.mType)); in dumpEntry() 284 pw.print(" - " + ImeTracker.Debug.statusToString(entry.mStatus)); in dumpEntry() 290 pw.println(" " + ImeTracker.Debug.originToString(entry.mOrigin)); in dumpEntry() 294 pw.println(" " + ImeTracker.Debug.phaseToString(entry.mPhase)); in dumpEntry()
|
/aosp14/frameworks/base/core/tests/coretests/BinderProxyCountingTestService/src/com/android/frameworks/coretests/binderproxycountingtestservice/ |
H A D | BpcTestServiceCmdService.java | 21 import android.os.Debug; 43 int gcCount = Integer.parseInt(Debug.getRuntimeStat("art.gc.gc-count")); 45 while (gcCount == Integer.parseInt(Debug.getRuntimeStat("art.gc.gc-count")) && i > 0) {
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | TraceTest.java | 55 Debug.startNativeTracing(); in testNativeTracingFromJava() 61 Debug.stopNativeTracing(); in testNativeTracingFromJava() 89 Debug.startMethodTracing("traceTest"); in testMethodTracing() 91 Debug.stopMethodTracing(); in testMethodTracing()
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/ |
H A D | MemoryTrackingTestCase.java | 19 import android.os.Debug; 84 Debug.dumpHprofData(path.getPath()); in dump()
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | ImeTracker.java | 453 Log.i(TAG, token.mTag + ": onRequestShow at " + Debug.originToString(origin) 467 Log.i(TAG, token.mTag + ": onRequestHide at " + Debug.originToString(origin) 479 Log.i(TAG, token.mTag + ": onProgress at " + Debug.phaseToString(phase)); 488 Log.i(TAG, token.mTag + ": onFailed at " + Debug.phaseToString(phase)); 494 Log.i(TAG, token.mTag + ": onTodo at " + Debug.phaseToString(phase)); 502 Log.i(TAG, token.mTag + ": onCancelled at " + Debug.phaseToString(phase)); 606 final class Debug { class 646 .collect(Collectors.toMap(Debug::getFieldValue, Field::getName)); in getFieldMapping()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
H A D | TypefaceSerializationPerfTest.java | 20 import android.os.Debug; 137 long baselineSize = Debug.getNativeHeapAllocatedSize(); in testDeserializeFontMap_memory() 139 long currentSize = Debug.getNativeHeapAllocatedSize(); in testDeserializeFontMap_memory()
|
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | BenchmarkState.java | 22 import android.os.Debug; 141 Debug.startMethodTracingSampling(f.getAbsolutePath(), 16 * 1024 * 1024, 100); in beginBenchmark() 159 Debug.stopMethodTracing(); in startNextTestRun()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | AppProfiler.java | 66 import android.os.Debug; 644 nativeTotalPss += Debug.getPss(stats.get(j).pid, null, null); in collectPssInBackground() 1545 long pss = Debug.getPss(st.pid, swaptrackTmp, memtrackTmp); in reportMemUsage() 1566 mi.pss = Debug.getPss(mi.pid, swaptrackTmp, memtrackTmp); in reportMemUsage() 1687 Debug.getMemInfo(infos); in reportMemUsage() 1702 if (infos[Debug.MEMINFO_ZRAM_TOTAL] != 0) { in reportMemUsage() 1729 final long ionHeap = Debug.getIonHeapsSizeKb(); in reportMemUsage() 1730 final long ionPool = Debug.getIonPoolsSizeKb(); in reportMemUsage() 1731 final long dmabufMapped = Debug.getDmabufMappedSizeKb(); in reportMemUsage() 1773 final long gpuUsage = Debug.getGpuTotalUsageKb(); in reportMemUsage() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PhonePipMenuController.java | 28 import android.os.Debug; 329 willResizeMenu, withDelay, showResizeHandle, Debug.getCallers(5, " ")); in showMenuInternal() 448 Debug.getCallers(5, " ")); in hideMenu() 528 Debug.getCallers(5, " ")); in onMenuStateChangeStart() 599 Debug.getCallers(5, " ")); in updateMenuLayout()
|
H A D | PipMotionHelper.java | 35 import android.os.Debug; 334 + " callers=\n%s", TAG, skipAnimation, Debug.getCallers(5, " ")); in expandLeavePip() 348 "%s: removePip: callers=\n%s", TAG, Debug.getCallers(5, " ")); in dismissPip() 535 Debug.getCallers(5, " ")); 655 + " callers=\n%s", TAG, toBounds, Debug.getCallers(5, " ")); 670 Debug.getCallers(5, " "));
|
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperDisplayHelper.java | 24 import android.os.Debug; 89 Slog.w(TAG, "Invalid displayId=" + displayId + " " + Debug.getCallers(4)); in getMaximumSizeDimension()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | Instrumentation.java | 35 import android.os.Debug; 372 Debug.startMethodTracing(file.toString(), 8 * 1024 * 1024); in startProfiling() 381 Debug.stopMethodTracing(); in stopProfiling() 1695 Debug.resetAllCounts(); in startAllocCounting() 1698 Debug.startAllocCounting(); in startAllocCounting() 1711 Debug.stopAllocCounting(); in stopAllocCounting() 1737 results.putLong("global_alloc_count", Debug.getGlobalAllocCount()); in getAllocCounts() 1738 results.putLong("global_alloc_size", Debug.getGlobalAllocSize()); in getAllocCounts() 1739 results.putLong("global_freed_count", Debug.getGlobalFreedCount()); in getAllocCounts() 1740 results.putLong("global_freed_size", Debug.getGlobalFreedSize()); in getAllocCounts() [all …]
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | MediaTestUtil.java | 27 import android.os.Debug; 62 Debug.dumpNativeHeap(o.getFD()); in getNativeHeapDump()
|