/tools/tradefederation/core/common_util/com/android/tradefed/invoker/tracing/ |
D | CloseableTraceScope.java | 36 @Nullable private final ActiveTrace trace; field in CloseableTraceScope 53 public CloseableTraceScope(ActiveTrace trace, String name) { in CloseableTraceScope() argument 54 this(trace, DEFAULT_CATEGORY, name); in CloseableTraceScope() 62 private CloseableTraceScope(ActiveTrace trace, String category, String name) { in CloseableTraceScope() argument 66 this.trace = trace; in CloseableTraceScope() 67 if (this.trace == null) { in CloseableTraceScope() 72 this.trace.reportTraceEvent( in CloseableTraceScope() 78 if (this.trace == null) { in close() 83 this.trace.reportTraceEvent( in close() 88 && Thread.currentThread().getId() == this.trace.reportingThreadId()) { in close()
|
D | TracingLogger.java | 45 ActiveTrace trace = new ActiveTrace(pid, tid, mainProcess); in createActiveTrace() local 46 mPerGroupActiveTrace.put(group, trace); in createActiveTrace() 47 return trace; in createActiveTrace() 81 static ActiveTrace setActiveTrace(ActiveTrace trace) { in setActiveTrace() argument 84 return mPerGroupActiveTrace.put(group, trace); in setActiveTrace() 112 ActiveTrace trace = mPerGroupActiveTrace.remove(group); in finalizeTrace() local 113 if (trace != null) { in finalizeTrace() 114 return trace.finalizeTracing(); in finalizeTrace()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | AtraceCollector.java | 224 private void postProcess(File trace) { in postProcess() argument 235 commandLine.add(entry.replaceAll(mLogProcessingTraceInput, trace.getAbsolutePath())); in postProcess() 297 File trace = device.pullFile(fullLogPath()); in onTestEnd() local 298 if (trace != null) { in onTestEnd() 299 CLog.i("Log size: %s bytes", String.valueOf(trace.length())); in onTestEnd() 301 try (FileInputStreamSource streamSource = new FileInputStreamSource(trace)) { in onTestEnd() 308 postProcess(trace); in onTestEnd() 309 trace.delete(); in onTestEnd()
|
/tools/trebuchet/ |
D | README.md | 3 Trebuchet is a Kotlin library for parsing and analyzing Android trace files generated by the `atrac… 11 Trebuchet comes bundled with several programs for analyzing one or more trace files. 15 The Startup Analyzer program takes a trace file, detects any startup events that occurred during th… 19 The Startup Summarizer program takes a set of trace files, detects startup events in each file, and… 23 …-startup.sh`, which will start a trace, launch an activity given a package name and an activity na…
|
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/tracing/ |
D | TracePropagatingExecutorServiceTest.java | 111 ActiveTrace trace = new ActiveTrace(0, 0); in startTracing() local 112 TracingLogger.setActiveTrace(trace); in startTracing() 113 return trace; in startTracing() 117 ActiveTrace trace = TracingLogger.getActiveTrace(); in stopTracing() local 119 return trace; in stopTracing()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | InvocationToJUnitResultForwarder.java | 57 public void testFailed(TestDescription testId, String trace) { in testFailed() argument 60 mJUnitListener.addFailure(test, new AssertionFailedError(trace)); in testFailed() 61 CLog.w("\nTest %s failed with stack:\n %s", testId.toString(), trace); in testFailed() 65 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 67 AssumptionViolatedException throwable = new AssumptionViolatedException(trace); in testAssumptionFailure()
|
D | TextResultReporter.java | 46 public void testFailed(TestDescription testId, String trace) { in testFailed() argument 47 super.testFailed(testId, trace); in testFailed() 51 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 52 super.testAssumptionFailure(testId, trace); in testAssumptionFailure()
|
D | NameMangleListener.java | 77 public void testFailed(TestDescription test, String trace) { in testFailed() argument 79 mListener.testFailed(mangledTestId, trace); in testFailed() 84 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 86 mListener.testAssumptionFailure(mangledTestId, trace); in testAssumptionFailure()
|
D | FilteredResultForwarder.java | 87 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 91 super.testAssumptionFailure(test, trace); in testAssumptionFailure() 119 public void testFailed(TestDescription test, String trace) { in testFailed() argument 123 super.testFailed(test, trace); in testFailed()
|
D | TestResultListener.java | 57 public final void testFailed(TestDescription test, String trace) { in testFailed() argument 59 mCurrentResult.setStackTrace(trace); in testFailed() 63 public final void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 65 mCurrentResult.setStackTrace(trace); in testAssumptionFailure()
|
D | BugreportCollector.java | 445 public void testFailed(TestDescription test, String trace) { in testFailed() argument 446 mListener.testFailed(test, trace); in testFailed() 447 mCollector.testFailed(test, trace); in testFailed() 454 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 455 mListener.testAssumptionFailure(test, trace); in testAssumptionFailure() 456 mCollector.testAssumptionFailure(test, trace); in testAssumptionFailure()
|
D | LogcatCrashResultForwarder.java | 99 public void testFailed(TestDescription test, String trace) { in testFailed() argument 100 testFailed(test, FailureDescription.create(trace)); in testFailed() 110 String trace = extractCrashAndAddToMessage(failure.getErrorMessage(), mStartTime); in testFailed() local 111 if (trace.contains(LOW_MEMORY_KILLER_TAG)) { in testFailed() 118 failure.setErrorMessage(trace); in testFailed()
|
/tools/tradefederation/core/src/com/android/tradefed/device/internal/ |
D | DeviceSnapshotHandler.java | 89 String trace = response.getErrorInfo().getErrorTrace(); in snapshotDevice() local 93 o = SerializationUtil.deserialize(trace); in snapshotDevice() 111 + trace, in snapshotDevice() 161 String trace = response.getErrorInfo().getErrorTrace(); in restoreSnapshotDevice() local 165 o = SerializationUtil.deserialize(trace); in restoreSnapshotDevice() 184 + trace, in restoreSnapshotDevice()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | XmlResultReporterTest.java | 139 final String trace = "this is a trace"; in testSingleFail() local 146 mResultReporter.testFailed(testId, trace); in testSingleFail() 156 final String failureTag = String.format("<failure>%s</failure>", trace); in testSingleFail() 197 final String trace = "this is a trace"; in testSingleAssumptionFailure() local 204 mResultReporter.testAssumptionFailure(testId, trace); in testSingleAssumptionFailure() 217 String.format("<assumption_failure>%s</assumption_failure>", trace); in testSingleAssumptionFailure()
|
D | LogcatCrashResultForwarderTest.java | 240 String trace = in testTestTimedOutTests() local 250 mReporter.testFailed(test, trace); in testTestTimedOutTests() 256 assertTrue(captured.getValue().getErrorMessage().contains(trace)); in testTestTimedOutTests() 264 String trace = in testShellTimedOutTests() local 276 mReporter.testFailed(test, trace); in testShellTimedOutTests() 282 assertTrue(captured.getValue().getErrorMessage().contains(trace)); in testShellTimedOutTests()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraTestMetricsCollectionListener.java | 77 public void testFailed(TestDescription test, String trace) { in testFailed() argument 78 super.testFailed(test, trace); in testFailed() 81 if (trace.startsWith(INCOMPLETE_TEST_ERR_MSG_PREFIX)) { in testFailed() 82 mFatalErrors.put(test.getTestName(), trace); in testFailed() local 83 LogUtil.CLog.d("Test (%s) failed due to fatal error : %s", test.getTestName(), trace); in testFailed() 85 mListener.testFailed(test, trace); in testFailed()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleListener.java | 222 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 223 super.testAssumptionFailure(test, trace); in testAssumptionFailure() 225 mTrace = trace; in testAssumptionFailure() 244 public void testFailed(TestDescription test, String trace) { in testFailed() argument 249 mTrace = trace; in testFailed() 250 super.testFailed(test, trace); in testFailed()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | TestTimeoutEnforcer.java | 84 public void testFailed(TestDescription test, String trace) { in testFailed() argument 85 super.testFailed(test, trace); in testFailed() 112 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 113 super.testAssumptionFailure(test, trace); in testAssumptionFailure()
|
D | GTestXmlResultParser.java | 208 String trace = ((Element)testcase.getElementsByTagName("failure").item(0)) in processTestResult() local 210 if (!trace.contains("Failed")) { in processTestResult() 213 trace += "\nFailed"; in processTestResult() 216 listener.testFailed(testId, trace); in processTestResult()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarder.java | 89 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument 96 TestDescription.createFromTestIdentifier(testId), trace); in testAssumptionFailure() local 107 public void testFailed(TestIdentifier testId, String trace) { in testFailed() argument 109 mNullStack = trace; in testFailed() 116 FailureDescription.create(trace)); in testFailed()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandRunner.java | 204 ActiveTrace trace = null; in main() local 207 trace = TracingLogger.createActiveTrace(pid, tid, true); in main() 208 trace.startTracing(false); in main() 214 if (trace != null) { in main() 215 trace.finalizeTracing(); in main()
|
/tools/asuite/atest/test_runners/ |
D | event_handler.py | 202 trace = self.state['last_failed']['trace'] 210 trace = None 214 trace = None 217 trace = None 231 details=trace,
|
/tools/trebuchet/trebuchet/startup-analyzer/ |
D | README.md | 6 :trebuchet:startup-analyzer:run --args="<absolute path to trace file>"`. 8 If you do not already have a trace file to analyze you can capture 10 seconds 13 trace from HTML files generated by `systrace.py`. 18 Opening `/usr/local/google/home/chriswailes/projects/trebuchet/trace-facebook.html` 21 Parsing trace-facebook.html took 435ms 105 Obfuscated trace point
|
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/ |
D | ForwardingTestListener.java | 101 public void testFailed(TestDescription test, String trace) { in testFailed() argument 102 delegate().testFailed(test, trace); in testFailed() 111 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument 112 delegate().testAssumptionFailure(test, trace); in testAssumptionFailure()
|
/tools/tradefederation/core/res/perfetto/ |
D | trace_config.textproto | 25 # The trace buffers need to be big enough to hold |file_write_period_ms| of 26 # trace data. The trace buffer sizing depends on the number of trace categories
|