Home
last modified time | relevance | path

Searched refs:trace (Results 1 – 25 of 77) sorted by relevance

1234

/tools/tradefederation/core/common_util/com/android/tradefed/invoker/tracing/
DCloseableTraceScope.java36 @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()
DTracingLogger.java45 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/
DAtraceCollector.java224 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/
DREADME.md3 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/
DTracePropagatingExecutorServiceTest.java111 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/
DInvocationToJUnitResultForwarder.java57 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()
DTextResultReporter.java46 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()
DNameMangleListener.java77 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()
DFilteredResultForwarder.java87 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()
DTestResultListener.java57 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()
DBugreportCollector.java445 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()
DLogcatCrashResultForwarder.java99 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/
DDeviceSnapshotHandler.java89 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/
DXmlResultReporterTest.java139 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()
DLogcatCrashResultForwarderTest.java240 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/
DCameraTestMetricsCollectionListener.java77 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/
DModuleListener.java222 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/
DTestTimeoutEnforcer.java84 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()
DGTestXmlResultParser.java208 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/
DTestRunToTestInvocationForwarder.java89 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/
DCommandRunner.java204 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/
Devent_handler.py202 trace = self.state['last_failed']['trace']
210 trace = None
214 trace = None
217 trace = None
231 details=trace,
/tools/trebuchet/trebuchet/startup-analyzer/
DREADME.md6 :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/
DForwardingTestListener.java101 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/
Dtrace_config.textproto25 # 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

1234