| /benchmark/integration-tests/macrobenchmark-target/src/main/res/drawable/ |
| D | ic_launcher.xml | 24 <path 27 <path 32 <path 37 <path 42 <path 47 <path 52 <path 57 <path 62 <path 67 <path [all …]
|
| /benchmark/benchmark-traceprocessor/src/commonMain/kotlin/androidx/benchmark/traceprocessor/ |
| D | PerfettoTrace.kt | 24 * Absolute file path of the trace. in <lambda>() 29 @get:RestrictTo(LIBRARY_GROUP) public val path: String in <lambda>() constant in androidx.benchmark.traceprocessor.PerfettoTrace 41 * Path to the trace. in <lambda>() 43 * When used with Android Benchmark, this is the relative path to the trace in the test in <lambda>() 46 public val path: String, in <lambda>() constant in androidx.benchmark.traceprocessor.PerfettoTrace.Link 54 * Path represented by the string in <lambda>() 56 * When used with Android Benchmark, this is the relative path to the trace in the test in <lambda>() 59 path: String, in <lambda>() 64 path = path, in <lambda>() 85 public val uri: String = "uri://$path$urlParamsEncoded" in <lambda>() [all …]
|
| /benchmark/benchmark-common/src/androidTest/java/androidx/benchmark/ |
| D | OutputsTest.kt | 115 relativePaths.forEach { path -> in <lambda>() method 116 assertFalse(path.startsWith("/"), "$path cannot start with a `/`.") in <lambda>() 118 path.startsWith(basePath), in <lambda>() 119 "Invalid relative path ($path), Base ($basePath)." in <lambda>() 123 for ((path, relativePath) in paths.zip(relativePaths)) { in <lambda>() method 124 assertEquals(path, relativePath, "$path != $relativePath") in <lambda>() 162 // simple way to get a unique path, not shared across runs in <lambda>() 164 val path = file.absolutePath in <lambda>() constant 167 Shell.executeScriptSilent("rm -f $path") in <lambda>() 169 Shell.executeScriptSilent("echo test > $path") in <lambda>() [all …]
|
| D | MarkdownTest.kt | 30 test_file_link(label = "abc", path = "/d/e/f", expected = "[abc](file:///d/e/f)") in test_file_link_basic() 37 test_file_link(label = "abc [tag] (1)", path = "/d/e (1)/f [2]", expected = expected) in test_file_link_basic() 42 path = "/d/e \\(1\\)/f [2]", in test_file_link_basic() 47 private fun test_file_link(label: String, path: String, expected: String) { in test_file_link() 48 val actual = Markdown.createFileLink(label, path) in test_file_link()
|
| D | PerfettoTraceLinkTest.kt | 32 PerfettoTrace.Link(title = "bar", path = "foo.perfetto-trace", urlParamsEncoded = "") in benchmarkMarkdownLink_emptyString() 44 path = "foo.perfetto-trace", in benchmarkMarkdownLink_simpleString() 58 path = "foo.perfetto-trace", in benchmarkMarkdownLink_map() 72 path = "foo.perfetto-trace", in benchmarkMarkdownLink_mapEncode()
|
| D | ShellTest.kt | 53 private fun CpuInfo.CoreDir.scalingMinFreqPath() = "$path/cpufreq/scaling_min_freq" in <lambda>() 71 // if the path exists, it should be readable by shell for every online core in <lambda>() 211 val path = in <lambda>() constant 217 Assert.assertEquals("foo\n", Shell.executeScriptCaptureStdout(path)) in <lambda>() 219 Shell.executeScriptCaptureStdout("rm $path") in <lambda>() 436 … path: /data/app/androidx.benchmark.test-C3VDUG1iLystEGyQTxcspA==/base.apk in <lambda>() 453 …path: /data/app/androidx.compose.foundation.layout.benchmark.test-pBhSh_spHfjDL-5jgzu_Jg==/base.apk in <lambda>() 469 path: .../SettingsGoogle.apk in <lambda>() 489 …path: /data/app/~~coMYW_NCkevOuZyH32n5Ag==/androidx.benchmark.test-kcNBMDGJ58lezaNWmNyTzQ==/base.a… in <lambda>()
|
| /benchmark/benchmark-common/src/main/java/androidx/benchmark/ |
| D | CpuInfo.kt | 32 val path: String, in <lambda>() constant in androidx.benchmark.CpuInfo.CoreDir 55 val path = "${cpuDir.absolutePath}/$coreDir" in <lambda>() constant 59 path = path, in <lambda>() 62 online = readFileTextOrNull("$path/online") != "0", in <lambda>() 67 readFileTextOrNull("$path/cpufreq/scaling_available_frequencies") in <lambda>() 75 Shell.catProcFileLong("$path/cpufreq/scaling_setspeed") in <lambda>() 76 ?: readFileTextOrNull("$path/cpufreq/scaling_min_freq")?.toLong() in <lambda>() 79 readFileTextOrNull("$path/cpufreq/cpuinfo_max_freq")?.toLong() ?: -1L in <lambda>() 119 private fun readFileTextOrNull(path: String): String? { in <lambda>() 121 File(path).run { in <lambda>()
|
| D | Shell.kt | 51 * relative path they were invoked from: in <lambda>() 66 processLabel.endsWith("/$processName") // executable with relative path in <lambda>() 79 fullProcessName.endsWith("/$processName") // executable with relative path in <lambda>() 90 fun catProcFileLong(path: String): Long? { in <lambda>() 91 return executeScriptCaptureStdoutStderr("cat $path").stdout.trim().run { in <lambda>() 102 * Get a checksum for a given path in <lambda>() 107 internal fun getChecksum(path: String): String { in <lambda>() 110 md5sum(path) in <lambda>() 113 return getFileSizeLsUnsafe(path) ?: "" in <lambda>() 117 val lsOutput = ShellImpl.executeCommandUnsafe("ls -l $path") in <lambda>() [all …]
|
| D | MicrobenchmarkConfig.kt | 71 @Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path) 72 @get:Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path) 76 @Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path) 77 @get:Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path)
|
| D | Outputs.kt | 123 * @return The absolute path of the output [File]. in <lambda>() 179 fun relativePathFor(path: String): String { in <lambda>() 180 val hasOutputDirectoryPrefix = path.startsWith(outputDirectory.absolutePath) in <lambda>() 183 hasOutputDirectoryPrefix -> path.removePrefix("${outputDirectory.absolutePath}/") in <lambda>() 184 else -> path.removePrefix("${dirUsableByAppAndShell.absolutePath}/") in <lambda>() 186 check(relativePath != path) { "$relativePath == $path" } in <lambda>()
|
| D | MarkdownExtensions.kt | 41 fun createFileLink(label: String, path: String) = createLink(label, "file://$path")
|
| D | Profiler.kt | 48 * these however, in order to avoid the runtime visiting a new class in the hot path, when switching 199 val path = Outputs.testOutputFile(traceFileName).absolutePath in startRuntimeMethodTracing() constant 201 Log.d(TAG, "Profiling output file: $path") in startRuntimeMethodTracing() 202 InstrumentationResults.reportAdditionalFileToCopy("profiling_trace", path) in startRuntimeMethodTracing() 216 .also { Debug.startMethodTracingSampling(path, bufferSize, intervalUs) } in startRuntimeMethodTracing() 231 Debug.startMethodTracing(path, bufferSize, 0x10) in startRuntimeMethodTracing()
|
| /benchmark/benchmark-darwin-xcode/projects/ |
| D | collection-benchmark-ios.yml | 10 path: App.plist 12 - path: '../iosSources/main' 26 path: Benchmark.plist 28 - path: '../iosAppUnitTests/main'
|
| D | benchmark-darwin-samples-xcode.yml | 10 path: App.plist 12 - path: '../iosSources/main' 26 path: Benchmark.plist 28 - path: '../iosAppUnitTests/main'
|
| /benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/ |
| D | StartupInsightsTest.kt | 42 path = "/fake/output/relative/path.perfetto-trace", in startupTraceLinkOf() 92 … "seen in iterations: [6](file:///fake/output/relative/path.perfetto-trace)(123305107ns)", in startupTraceLinkOf() 94 …"seen in iterations: [6](uri:///fake/output/relative/path.perfetto-trace?AndroidStartup%3ApackageN… in startupTraceLinkOf() 100 … "seen in iterations: [6](file:///fake/output/relative/path.perfetto-trace)(328462261ns)", in startupTraceLinkOf() 102 …"seen in iterations: [6](uri:///fake/output/relative/path.perfetto-trace?AndroidStartup%3ApackageN… in startupTraceLinkOf() 108 … "seen in iterations: [6](file:///fake/output/relative/path.perfetto-trace)(150 count)", in startupTraceLinkOf() 110 …"seen in iterations: [6](uri:///fake/output/relative/path.perfetto-trace?AndroidStartup%3ApackageN… in startupTraceLinkOf() 124 traceLinkPath = "/fake/output/relative/path.perfetto-trace" in startupTraceLinkOf() 134 traceLinkPath = "/fake/output/relative/path.perfetto-trace" in startupTraceLinkOf()
|
| D | CompilationModeTest.kt | 111 var path = Shell.pmPath(Packages.TARGET) in reinstallTargetPackageTest() variable 112 kotlin.test.assertTrue { path.isEmpty() } in reinstallTargetPackageTest() 117 path = Shell.pmPath(Packages.TARGET) in reinstallTargetPackageTest() 118 kotlin.test.assertTrue { path.isNotEmpty() } in reinstallTargetPackageTest()
|
| D | MacrobenchmarkScopeTest.kt | 216 // Note: rooted device will hit this path, unless `adb root` is invoked in <lambda>() 343 val path = MacrobenchmarkScope.getShaderCachePath(packageName) in <lambda>() constant 345 println("validating shader path $path") in <lambda>() 347 Shell.executeScriptCaptureStdout("find $path -type f | wc -l").trim().toInt() in <lambda>() 349 val files = Shell.executeScriptCaptureStdout("find $path -type f") in <lambda>() 350 assertEquals(0, fileCount, "Expected 0 files in $path, saw $fileCount (files = $files)") in <lambda>() 352 assertNotEquals(0, fileCount, "Expected >0 files in $path, saw $fileCount") in <lambda>()
|
| /benchmark/benchmark-common/src/main/java/androidx/benchmark/perfetto/ |
| D | PerfettoCaptureWrapper.kt | 109 Shell.chmod(path = it.absolutePath, args = "777") in stop() 150 val path: String in record() constant 162 path = stop(fileLabel) in record() 166 inMemoryTrace.encode(FileOutputStream(path, /* append= */ true)) in record() 168 traceCallback?.invoke(path) in record() 170 return path in record()
|
| D | PerfettoHelper.kt | 87 // The actual location of the config path. in <lambda>() 90 val path = "$UNBUNDLED_PERFETTO_ROOT_DIR/config.pb" in <lambda>() constant 92 Shell.rm(path) in <lambda>() 97 Shell.executeScriptCaptureStdoutStderr("cp $configFilePath $path").also { in <lambda>() 106 Shell.cp(from = configFilePath, to = path) in <lambda>() 108 path in <lambda>() 179 val path: String = in <lambda>() constant 189 "Unable to find path to tracing_on (e.g. $TRACING_ON_PATH)", in <lambda>() 199 when (val output = Shell.executeScriptCaptureStdout("cat $path").trim()) { in <lambda>() 207 Log.i(LOG_TAG, "$path = 1, polled $it times, capture fully started") in <lambda>() [all …]
|
| D | PerfettoCapture.kt | 81 * Stop collection, and record trace to the specified file path. in <lambda>() 83 * @param destinationPath Absolute path to write perfetto trace to. Must be shell-writable, such in <lambda>() 231 Shell.mkdir(dstFile.parentFile!!.path) in <lambda>() 232 Shell.mv(srcFile.path, dstFile.path) in <lambda>()
|
| /benchmark/samples/src/main/java/androidx/benchmark/samples/ |
| D | TraceProcessorSample.kt | 34 loadTrace(PerfettoTrace("/path/to/trace.perfetto-trace")) { in traceProcessorRunServerSimple() 49 it.traceProcessor.startSession(PerfettoTrace("/path/to/trace.perfetto-trace")).use { in traceProcessorStartServerSimple() 64 loadTrace(PerfettoTrace("/path/to/trace.perfetto-trace")) { in TraceProcessor()
|
| /benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ |
| D | BaselineProfiles.kt | 263 // The path of the reference profile in extractProfileRooted() 265 // The path to the primary profile in extractProfileRooted() 273 Log.d(TAG, "APK Path: $apkPath") in extractProfileRooted() 289 // 2 locations. The `ref` profile path, or the `current` path. in profmanGetProfileRules() 290 // The `current` path is eventually merged into the `ref` path after background dexopt. in profmanGetProfileRules() 349 // Link to a path with timestamp to prevent studio from caching the file in summaryRecord()
|
| /benchmark/benchmark-junit4/src/main/java/androidx/benchmark/junit4/ |
| D | PerfettoTraceRule.kt | 50 * When invoked via Gradle, files will be copied to host path like the following: 55 * You can additionally check logcat for messages tagged "PerfettoCapture:" for the path of each 105 Profiler.ResultFile.ofPerfettoTrace("Trace", it.path) in apply()
|
| /benchmark/baseline-profile-gradle-plugin/src/test/kotlin/androidx/baselineprofile/gradle/utils/ |
| D | TestUtils.kt | 22 import kotlin.io.path.Path in <lambda>() 116 fun File.toUri() = Path(canonicalPath).toUri()
|
| /benchmark/benchmark-common/src/main/java/androidx/benchmark/simpleperf/ |
| D | ProfileSession.java | 246 private boolean isExecutableFile(@NonNull String path) { in isExecutableFile() argument 247 File file = new File(path); in isExecutableFile() 252 String path = "/data/local/tmp/simpleperf"; in findSimpleperfInTempDir() local 253 File file = new File(path); in findSimpleperfInTempDir() 261 .command("cp", path, toPath).start(); in findSimpleperfInTempDir() 332 * @param inputPath Path of the .data file within the simpleperf output directory 333 * @param outputPath Path to write the .trace proto format to.
|