Ahmad Sharif | ae1714d | 2013-01-17 11:29:37 -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 PERF_TOOL_H |
| 6 | #define PERF_TOOL_H |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/basictypes.h> |
| 11 | #include <dbus-c++/dbus.h> |
| 12 | |
| 13 | namespace debugd { |
| 14 | |
| 15 | class PerfTool { |
| 16 | public: |
| 17 | PerfTool(); |
| 18 | ~PerfTool(); |
| 19 | |
| 20 | std::vector<uint8> GetPerfData(const uint32_t& duration, |
| 21 | DBus::Error& error); // NOLINT |
| 22 | private: |
| 23 | void GetPerfDataHelper(const uint32_t& duration, |
| 24 | DBus::Error& error, |
| 25 | std::string* data_string); // NOLINT |
| 26 | DISALLOW_COPY_AND_ASSIGN(PerfTool); |
| 27 | }; |
| 28 | |
| 29 | }; // namespace debugd |
| 30 | |
| 31 | #endif // !PERF_TOOL_H |
| 32 | |