Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: systrace/systrace/systrace_agent.py

Issue 1776013005: [DO NOT COMMIT] Refactor systrace to support new clock sync design (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: fix categories issue Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « systrace/systrace/systrace.py ('k') | systrace/systrace/systrace_tracing_controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: systrace/systrace/systrace_agent.py
diff --git a/systrace/systrace/systrace_agent.py b/systrace/systrace/systrace_agent.py
deleted file mode 100644
index bca5e5e0bb38858bd82187671d5aa8ccbb9c1486..0000000000000000000000000000000000000000
--- a/systrace/systrace/systrace_agent.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright (c) 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-class SystraceAgent(object):
- """The base class for systrace agents.
-
- A systrace agent contains the command-line options and trace categories to
- capture. Each systrace agent has its own tracing implementation.
- """
-
- def __init__(self, options, categories):
- """Initialize a systrace agent.
-
- Args:
- options: The command-line options.
- categories: The trace categories to capture.
- """
- self._options = options
- self._categories = categories
-
- def start(self):
- """Start tracing.
- """
- raise NotImplementedError()
-
- def collect_result(self):
- """Collect the result of tracing.
-
- This function will block while collecting the result. For sync mode, it
- reads the data, e.g., from stdout, until it finishes. For async mode, it
- blocks until the agent is stopped and the data is ready.
- """
- raise NotImplementedError()
-
- def expect_trace(self):
- """Check if the agent is returning a trace or not.
-
- This will be determined in collect_result().
- Returns:
- Whether the agent is expecting a trace or not.
- """
- raise NotImplementedError()
-
- def get_trace_data(self):
- """Get the trace data.
-
- Returns:
- The trace data.
- """
- raise NotImplementedError()
-
- def get_class_name(self):
- """Get the class name
-
- The class name is used to identify the trace type when the trace is written
- to the html file
- Returns:
- The class name.
- """
- raise NotImplementedError()
« no previous file with comments | « systrace/systrace/systrace.py ('k') | systrace/systrace/systrace_tracing_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698