Sam Leffler | f81eaa8 | 2012-03-01 09:50:30 -0800 | [diff] [blame^] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SYSTRACE_TOOL_H |
| 6 | #define SYSTRACE_TOOL_H |
| 7 | |
| 8 | #include <map> |
| 9 | #include <string> |
| 10 | |
| 11 | #include <base/basictypes.h> |
| 12 | #include <dbus-c++/dbus.h> |
| 13 | |
| 14 | #include "subprocess_tool.h" |
| 15 | |
| 16 | namespace debugd { |
| 17 | |
| 18 | class SystraceTool { |
| 19 | public: |
| 20 | SystraceTool(); |
| 21 | ~SystraceTool(); |
| 22 | |
| 23 | std::string Start(const std::string& categories, DBus::Error& error); |
| 24 | void Stop(const DBus::FileDescriptor& outfd, DBus::Error& error); |
| 25 | std::string Status(DBus::Error& error); |
| 26 | }; |
| 27 | |
| 28 | }; // namespace debugd |
| 29 | |
| 30 | #endif // SYSTRACE_TOOL_H |