/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | DumpsysMeminfoHelper.java | 78 for (String processName : mProcessNames) { in getMetrics() 79 byte[] rawOutput = getRawDumpsysMeminfo(processName); in getMetrics() 81 Log.e(TAG, "Missing meminfo output for process " + processName); in getMetrics() 84 metrics.putAll(parseMetrics(processName, rawOutput)); in getMetrics() 86 if (mProcessObjNamesMap.keySet().contains(processName)) { in getMetrics() 87 metrics.putAll(parseObjectCountMetrics(processName, rawOutput)); in getMetrics() 93 for (String processName : mProcessObjNamesMap.keySet()) { in getMetrics() 95 if (processNameList.contains(processName)) { in getMetrics() 98 byte[] rawOutput = getRawDumpsysMeminfo(processName); in getMetrics() 100 Log.e(TAG, "Missing meminfo output for process " + processName); in getMetrics() [all …]
|
D | TotalPssHelper.java | 82 for (String processName : mProcessNames) { in getMetrics() 83 if (!processName.isEmpty()) { in getMetrics() 84 measureMemory(processName); in getMetrics() 102 private void measureMemory(String processName) { in measureMemory() argument 103 Log.i(TAG, "Tracking memory usage of the process - " + processName); in measureMemory() 109 pss = getPss(processName); in measureMemory() 114 mPssFinalMap.put(constructKey(PSS_METRIC_PREFIX, processName), pss * 1024); in measureMemory() 120 Log.i(TAG, processName + " memory usage did not stabilize." in measureMemory() 123 mPssFinalMap.put(constructKey(PSS_METRIC_PREFIX, processName), average(pssData) * 1024); in measureMemory() 145 private long getPss(String processName) { in getPss() argument [all …]
|
D | MemLeaksHelper.java | 84 for (String processName : current.keySet()) { in getMetrics() 85 if (mPrevious.containsKey(processName)) { in getMetrics() 86 results.put(processName, current.get(processName) - mPrevious.get(processName)); in getMetrics() 88 results.put(processName, current.get(processName)); in getMetrics() 141 String processName = pids.get(pid); in getMeminfo() local 143 results.put(PROC_MEM_BYTES + processName, Long.parseLong(matcherLeak.group(1))); in getMeminfo() 144 results.put(PROC_ALLOCATIONS + processName, Long.parseLong(matcherLeak.group(2))); in getMeminfo() 149 Log.w(TAG, "Unreachable memory info is missing when querying the " + processName); in getMeminfo() 150 results.put(PROC_MEM_BYTES + processName, 0L); in getMeminfo() 151 results.put(PROC_ALLOCATIONS + processName, 0L); in getMeminfo() [all …]
|
D | ShowmapSnapshotHelper.java | 181 for (String processName : mProcessNames) { in getMetrics() 185 pids = getPids(processName); in getMetrics() 202 String showmapOutput = execShowMap(processName, pid); in getMetrics() 206 processName, pid, PROCESS_OOM_SCORE_IMPERCEPTIBLE)) { in getMetrics() 210 "This process is imperceptible: %s", processName)); in getMetrics() 212 processName, in getMetrics() 217 processName, showmapOutput, OUTPUT_METRIC_PATTERN); in getMetrics() 222 storeToFile(mTestOutputFile, processName, pid, showmapOutput, writer); in getMetrics() 226 updateChildProcessesDetails(processName, pid); in getMetrics() 263 public HashSet<Integer> getChildrenPids(String processName) { in getChildrenPids() argument [all …]
|
D | ProcessShowmapHelper.java | 99 String processName = mProcessNames[i]; in getMetrics() local 106 showmapFinalMap.put(constructKey(processName, PSS), endMetrics.pss); in getMetrics() 107 showmapFinalMap.put(constructKey(processName, RSS), endMetrics.rss); in getMetrics() 108 showmapFinalMap.put(constructKey(processName, VSS), endMetrics.vss); in getMetrics() 116 constructKey(processName, PSS, DELTA), endMetrics.pss - startMetrics.pss); in getMetrics() 118 constructKey(processName, RSS, DELTA), endMetrics.rss - startMetrics.rss); in getMetrics() 120 constructKey(processName, VSS, DELTA), endMetrics.vss - startMetrics.vss); in getMetrics() 155 private @Nullable ShowmapMetrics sampleMemory(@NonNull String processName) { in sampleMemory() argument 161 String.format(PIDOF_CMD, processName)); in sampleMemory() 164 Log.e(TAG, String.format("Unable to get pid of %s ", processName), e); in sampleMemory() [all …]
|
D | HeapDumpHelper.java | 89 for (String processName : mProcessNames) { in getMetrics() 90 String pid = getPid(processName); in getMetrics() 102 processName.replace("/", "#"), in getMetrics() 105 execHeapDump(pid, processName, finalHeapDumpPath, false); in getMetrics() 118 processName.replace("/", "#"), in getMetrics() 122 execHeapDump(pid, processName, finalNativeHeapDumpPath, true); in getMetrics() 147 private String getPid(String processName) { in getPid() argument 150 output = mUiDevice.executeShellCommand(String.format(PIDOF_CMD, processName)); in getPid() 151 Log.i(TAG, String.format("The PID of %s is %s.", processName, output)); in getPid() 153 Log.e(TAG, String.format("Failed to get the pid of %s", processName), e); in getPid() [all …]
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | ProcessStatusTracker.java | 61 public void addMonitoredProcess(String processName) { in addMonitoredProcess() argument 62 if (mPidTracker.containsKey(processName)) { in addMonitoredProcess() 63 throw new IllegalArgumentException("Process already being monitored: " + processName); in addMonitoredProcess() 65 mPidTracker.put(processName, -1); in addMonitoredProcess() 67 mPidExclusions.add(processName); in addMonitoredProcess() 89 if (mPidTracker.containsKey(info.processName) in getProcessDetails() 90 && !mPidExclusions.contains(info.processName)) { in getProcessDetails() 92 detail.processName = info.processName; in getProcessDetails() 95 int pid = mPidTracker.get(info.processName); in getProcessDetails() 97 mPidTracker.put(info.processName, info.pid); in getProcessDetails() [all …]
|
D | IProcessStatusTracker.java | 30 public String processName; field in IProcessStatusTracker.ProcessDetails 38 public void addMonitoredProcess(String processName); in addMonitoredProcess() argument 52 public void setAllowProcessTracking(String processName); in setAllowProcessTracking() argument
|
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/ |
D | UiBenchJankTests.java | 67 @GfxMonitor(processName = PACKAGE_NAME) 78 @GfxMonitor(processName = PACKAGE_NAME) 89 @GfxMonitor(processName = PACKAGE_NAME) 100 @GfxMonitor(processName = PACKAGE_NAME) 111 @GfxMonitor(processName = PACKAGE_NAME) 122 @GfxMonitor(processName = PACKAGE_NAME) 132 @GfxMonitor(processName = PACKAGE_NAME) 142 @GfxMonitor(processName = PACKAGE_NAME) 153 @GfxMonitor(processName = PACKAGE_NAME) 164 @GfxMonitor(processName = PACKAGE_NAME) [all …]
|
D | UiBenchLeanbackJankTests.java | 112 @GfxMonitor(processName = PACKAGE_NAME) 113 @GfxFrameStatsMonitor(processName = PACKAGE_NAME) 123 @GfxMonitor(processName = PACKAGE_NAME) 124 @GfxFrameStatsMonitor(processName = PACKAGE_NAME) 135 @GfxMonitor(processName = PACKAGE_NAME) 136 @GfxFrameStatsMonitor(processName = PACKAGE_NAME) 148 @GfxMonitor(processName = PACKAGE_NAME) 149 @GfxFrameStatsMonitor(processName = PACKAGE_NAME)
|
D | UiBenchRenderingJankTests.java | 66 @GfxMonitor(processName = PACKAGE_NAME) 82 @GfxMonitor(processName = PACKAGE_NAME)
|
D | UiBenchTextJankTests.java | 83 @GfxMonitor(processName = PACKAGE_NAME) 100 @GfxMonitor(processName = PACKAGE_NAME)
|
D | UiBenchWebView.java | 63 @GfxMonitor(processName = PACKAGE_NAME)
|
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ |
D | MallocDebug.java | 56 ITestDevice device, String mallocDebugOption, String processName, boolean isService) in MallocDebug() argument 59 mProcessName = processName; in MallocDebug() 72 SystemUtil.withProperty(device, MALLOC_DEBUG_PROGRAM_PROP, processName); in MallocDebug() 79 mProcessKill = ProcessUtil.withProcessKill(device, processName, null); in MallocDebug() 80 ProcessUtil.waitProcessRunning(device, processName); in MallocDebug() 145 ITestDevice device, String mallocDebugOptions, String processName) in withLibcMallocDebugOnService() argument 148 if (processName == null || processName.isEmpty()) { in withLibcMallocDebugOnService() 151 return new MallocDebug(device, mallocDebugOptions, processName, true); in withLibcMallocDebugOnService() 165 ITestDevice device, String mallocDebugOptions, String processName) in withLibcMallocDebugOnNewProcess() argument 168 if (processName == null || processName.isEmpty()) { in withLibcMallocDebugOnNewProcess() [all …]
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | CrashHelper.java | 93 String processName = anrAtom.processName; in getMetrics() local 100 processName, reason, foregoundState)); in getMetrics() 106 EVENT_ANR, processName, String.valueOf(foregoundState)); in getMetrics()
|
D | AppStartupHelper.java | 188 String processName = processStartTimeAtom.processName; in getMetrics() local 199 processName, in getMetrics() 224 PROCESS_START_DELAY, processName, hostingType); in getMetrics() 226 COUNT, processName, hostingType); in getMetrics()
|
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
D | UiBenchJankTests.java | 76 @GfxMonitor(processName=PACKAGE_NAME) 92 @GfxMonitor(processName=PACKAGE_NAME) 104 @GfxMonitor(processName=PACKAGE_NAME) 120 @GfxMonitor(processName=PACKAGE_NAME) 136 @GfxMonitor(processName=PACKAGE_NAME) 167 @GfxMonitor(processName=PACKAGE_NAME) 202 @GfxMonitor(processName=PACKAGE_NAME)
|
D | UiBenchTextJankTests.java | 81 @GfxMonitor(processName=PACKAGE_NAME) 94 @GfxMonitor(processName=PACKAGE_NAME) 127 @GfxMonitor(processName=PACKAGE_NAME)
|
D | UiBenchRenderingJankTests.java | 77 @GfxMonitor(processName=PACKAGE_NAME) 90 @GfxMonitor(processName=PACKAGE_NAME)
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | ShowmapSnapshotHelperTest.java | 194 for (String processName : CACHED_PROCESS_LIST) { in testGetMetrics_MixedProcess() 202 processName))); in testGetMetrics_MixedProcess() local 210 processName))); in testGetMetrics_MixedProcess() local 226 for (String processName : CACHED_PROCESS_LIST) { in testGetMetrics_CachedProcess() 234 processName))); in testGetMetrics_CachedProcess() local 242 processName))); in testGetMetrics_CachedProcess() local 385 for (String processName : processNames) { in testProcessList() 388 ShowmapSnapshotHelper.OUTPUT_METRIC_PATTERN, "rss"), processName))); in testProcessList() local 391 ShowmapSnapshotHelper.OUTPUT_METRIC_PATTERN, "pss"), processName))); in testProcessList() local
|
D | DumpsysMeminfoHelperTest.java | 213 private void verifyKeysForProcess(Map<String, Long> results, String processName) { in verifyKeysForProcess() argument 219 METRIC_SOURCE, category, metric, UNIT, processName))); in verifyKeysForProcess() 225 METRIC_SOURCE, "total", "pss_total", UNIT, processName))); in verifyKeysForProcess()
|
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/ |
D | ApiDemoJankTests.java | 142 @GfxMonitor(processName=PACKAGE_NAME) 161 @GfxMonitor(processName=PACKAGE_NAME) 178 @GfxMonitor(processName=PACKAGE_NAME) 195 @GfxMonitor(processName=PACKAGE_NAME) 214 @GfxMonitor(processName=PACKAGE_NAME) 239 @GfxMonitor(processName=PACKAGE_NAME) 320 @GfxMonitor(processName=PACKAGE_NAME) 343 @GfxMonitor(processName=PACKAGE_NAME)
|
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
D | SystemUiJankTests.java | 343 @GfxMonitor(processName = "#getPackageForRecents") 357 @GfxMonitor(processName = "#getPackageForRecents") 418 @GfxMonitor(processName = SYSTEMUI_PACKAGE) 453 @GfxMonitor(processName = SYSTEMUI_PACKAGE) 474 @GfxMonitor(processName = SYSTEMUI_PACKAGE) 509 @GfxMonitor(processName = SYSTEMUI_PACKAGE) 546 @GfxMonitor(processName = SYSTEMUI_PACKAGE) 583 @GfxMonitor(processName = SYSTEMUI_PACKAGE) 631 @GfxMonitor(processName = SYSTEMUI_PACKAGE) 669 @GfxMonitor(processName = SYSTEMUI_PACKAGE) [all …]
|
D | LauncherJankTests.java | 126 @GfxMonitor(processName="#getLauncherPackage") 152 @GfxMonitor(processName="#getLauncherPackage") 178 @GfxMonitor(processName="#getLauncherPackage") 206 @GfxMonitor(processName="#getLauncherPackage") 237 @GfxMonitor(processName = "#getLauncherPackage")
|
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/ |
D | SystemUiJankTests.java | 84 @GfxMonitor(processName=TVLAUNCHER_PACKAGE) 109 @GfxMonitor(processName=SETTINGS_PACKAGE) 135 @GfxMonitor(processName=SETTINGS_PACKAGE)
|