Home
last modified time | relevance | path

Searched refs:Debug (Results 1 – 25 of 168) sorted by relevance

1234567

/frameworks/base/services/core/java/com/android/server/stats/pull/
DSystemMemoryUtil.java19 import android.os.Debug;
29 int totalIonKb = (int) Debug.getDmabufHeapTotalExportedKb(); in getMetrics()
30 int gpuTotalUsageKb = (int) Debug.getGpuTotalUsageKb(); in getMetrics()
31 int gpuPrivateAllocationsKb = (int) Debug.getGpuPrivateMemoryKb(); in getMetrics()
32 int dmaBufTotalExportedKb = (int) Debug.getDmabufTotalExportedKb(); in getMetrics()
34 long[] mInfos = new long[Debug.MEMINFO_COUNT]; in getMetrics()
35 Debug.getMemInfo(mInfos); in getMetrics()
37 long kReclaimableKb = mInfos[Debug.MEMINFO_KRECLAIMABLE]; in getMetrics()
42 kReclaimableKb = mInfos[Debug.MEMINFO_SLAB_RECLAIMABLE]; in getMetrics()
45 long accountedKb = mInfos[Debug.MEMINFO_FREE] in getMetrics()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DMemInfoReader.java21 import android.os.Debug;
25 final long[] mInfos = new long[Debug.MEMINFO_COUNT];
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()
95 long kReclaimable = mInfos[Debug.MEMINFO_KRECLAIMABLE]; in getCachedSizeKb()
101 kReclaimable = mInfos[Debug.MEMINFO_SLAB_RECLAIMABLE]; in getCachedSizeKb()
103 return mInfos[Debug.MEMINFO_BUFFERS] + kReclaimable in getCachedSizeKb()
[all …]
/frameworks/base/tools/preload/loadclass/
DLoadClass.java17 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()
/frameworks/base/core/java/android/os/
DPerformanceCollector.java495 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 …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DDebugTest.java21 import android.os.Debug;
47 return Debug.getCaller(); in callDepth0()
59 return Debug.getCallers(3); in callDepth4()
84 Debug.MemoryInfo info = new Debug.MemoryInfo(); in testGetMemoryInfo()
85 Debug.getMemoryInfo(-1, info); in testGetMemoryInfo()
/frameworks/base/core/java/android/ddm/
DDdmHandleProfiling.java20 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()
DDdmHandleHello.java20 import android.os.Debug;
173 if (Debug.waitingForDebugger()) in handleHELO()
185 final String[] vmFeatures = Debug.getVmFeatureList(); in handleFEAT()
190 String[] fmFeatures = Debug.getFeatureList(); in handleFEAT()
/frameworks/base/apct-tests/perftests/core/src/android/util/
DXmlPerfTest.java22 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()
/frameworks/base/core/tests/coretests/src/android/os/
DTraceTest.java108 @IgnoreUnderRavenwood(blockedBy = Debug.class)
112 Debug.startNativeTracing(); in testNativeTracingFromJava()
118 Debug.stopNativeTracing(); in testNativeTracingFromJava()
129 @IgnoreUnderRavenwood(blockedBy = Debug.class)
145 @IgnoreUnderRavenwood(blockedBy = Debug.class)
149 Debug.startMethodTracing("traceTest"); in testMethodTracing()
151 Debug.stopMethodTracing(); in testMethodTracing()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDelegateManager.java19 import com.android.layoutlib.bridge.util.Debug;
118 if (Debug.DEBUG) { in getDelegate()
144 if (Debug.DEBUG) { in addNewDelegate()
162 if (Debug.DEBUG) { in removeJavaReferenceFor()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowSurfacePlacer.java25 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()
227 if (DEBUG) Slog.i(TAG, "Defer requestTraversal " + Debug.getCallers(3)); in requestTraversal()
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable_holder.rs44 trait AnyParcelable: DowncastSync + Parcelable + std::fmt::Debug {}
46 impl<T> AnyParcelable for T where T: DowncastSync + Parcelable + std::fmt::Debug {}
48 #[derive(Debug, Clone)]
62 #[derive(Debug)]
92 T: Any + Parcelable + ParcelableMetadata + std::fmt::Debug + Send + Sync, in set_parcelable()
119 T: Any + Parcelable + ParcelableMetadata + Default + std::fmt::Debug + Send + Sync, in get_parcelable()
/frameworks/base/tools/aapt2/cmd/
DDump.cpp189 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()
/frameworks/native/libs/input/rust/
Dinput.rs25 #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
29 #[derive(Debug)]
51 #[derive(Debug, PartialEq)]
196 #[derive(Debug)]
235 #[derive(Debug, PartialEq)]
280 #[derive(Default, Debug, Copy, Clone, Eq, PartialEq)]
323 #[derive(Debug, Copy, Clone, Eq, PartialEq)]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java27 import android.os.Debug;
154 Debug.MemoryInfo memoryInfo = new Debug.MemoryInfo(); in testMemoryAllocation()
155 Debug.getMemoryInfo(memoryInfo); in testMemoryAllocation()
162 Debug.getMemoryInfo(memoryInfo); in testMemoryAllocation()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DImeTrackerService.java245 + ImeTracker.Debug.phaseToString(phase) + " with " in setFinished()
246 + ImeTracker.Debug.statusToString(status)); in setFinished()
261 + ImeTracker.Debug.phaseToString(entry.mPhase) + " with " in setFinished()
262 + ImeTracker.Debug.statusToString(status)); in setFinished()
303 pw.print(" " + ImeTracker.Debug.typeToString(entry.mType)); in dumpEntry()
304 pw.print(" - " + ImeTracker.Debug.statusToString(entry.mStatus)); in dumpEntry()
310 pw.println(" " + ImeTracker.Debug.originToString(entry.mOrigin)); in dumpEntry()
314 pw.println(" " + ImeTracker.Debug.phaseToString(entry.mPhase)); in dumpEntry()
/frameworks/native/libs/nativewindow/rust/src/
Dsurface.rs29 use std::fmt::{self, Debug, Display, Formatter};
74 impl Debug for Surface {
134 #[derive(Copy, Clone, Debug, Eq, PartialEq)]
/frameworks/base/core/tests/coretests/BinderProxyCountingTestService/src/com/android/frameworks/coretests/binderproxycountingtestservice/
DBpcTestServiceCmdService.java21 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) {
/frameworks/compile/mclinker/include/mcld/LD/
DDiagReaders.inc6 DiagnosticEngine::Debug,
10 DiagnosticEngine::Debug,
/frameworks/native/cmds/sfdo/
Dsfdo.rs18 use std::fmt::Debug;
24 E: Debug, in print_result() argument
55 #[derive(Subcommand, Debug)]
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/
DHostStubGenLogger.kt32 Debug,
180 println(LogLevel.Debug, message) in d()
185 println(LogLevel.Debug, format, *args) in d()
195 if (isEnabled(LogLevel.Debug)) { in forDebug()
/frameworks/native/libs/bufferstreams/rust/src/subscriptions/
Dshared_buffer_subscription.rs21 #[derive(Clone, Debug)]
24 #[derive(Debug, Default)]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/
DMemoryTrackingTestCase.java19 import android.os.Debug;
85 Debug.dumpHprofData(path.getPath()); in dump()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceSerializationPerfTest.java20 import android.os.Debug;
137 long baselineSize = Debug.getNativeHeapAllocatedSize(); in testDeserializeFontMap_memory()
139 long currentSize = Debug.getNativeHeapAllocatedSize(); in testDeserializeFontMap_memory()
/frameworks/base/services/core/java/com/android/server/am/
DAppProfiler.java68 import android.os.Debug;
654 nativeTotalPss += Debug.getPss(stats.get(j).pid, null, null); in collectPssInBackground()
723 long pss = skipPSSCollection ? 0 : Debug.getPss(pid, tmp, null); in collectPssInBackground()
790 nativeTotalRss += Debug.getRss(stats.get(j).pid, null); in collectRssInBackground()
864 long rss = skipRSSCollection ? 0 : Debug.getRss(pid, null); in collectRssInBackground()
1017 long pss = Debug.getPss(profile.getPid(), null, null); in recordRssSampleLPf()
1679 long pss = Debug.getPss(st.pid, swaptrackTmp, memtrackTmp); in reportMemUsage()
1700 mi.pss = Debug.getPss(mi.pid, swaptrackTmp, memtrackTmp); in reportMemUsage()
1821 Debug.getMemInfo(infos); in reportMemUsage()
1823 memInfoBuilder.append(stringifyKBSize(infos[Debug.MEMINFO_SLAB])).append(" slab, "); in reportMemUsage()
[all …]

1234567