Пример #1
0
 def __init__(self, platform_backend):
     super(AtraceTracingAgent, self).__init__(platform_backend)
     self._device = platform_backend.device
     self._categories = None
     self._atrace_agent = atrace_agent.AtraceAgent(
         platform_backend.device.build_version_sdk)
     self._config = None
Пример #2
0
 def test_preprocess_trace_data(self):
     with contextlib.nested(open(ATRACE_DATA_STRIPPED, 'r'),
                            open(ATRACE_DATA_RAW, 'r')) as (f1, f2):
         atrace_data = f1.read()
         atrace_data_raw = f2.read()
         options, categories = run_systrace.parse_options(STOP_FIX_UPS)
         agent = atrace_agent.AtraceAgent()
         agent._config = options
         agent._config.atrace_categories = categories
         trace_data = agent._preprocess_trace_data(atrace_data_raw)
         self.assertEqual(atrace_data, trace_data)
Пример #3
0
 def __init__(self, platform_backend):
     super(AtraceTracingAgent, self).__init__(platform_backend)
     self._device = platform_backend.device
     self._categories = None
     self._atrace_agent = atrace_agent.AtraceAgent()
     self._options = None