OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DBUS_DBUS_STATISTICS_H_ | 5 #ifndef DBUS_DBUS_STATISTICS_H_ |
6 #define DBUS_DBUS_STATISTICS_H_ | 6 #define DBUS_DBUS_STATISTICS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "dbus/dbus_export.h" | 10 #include "dbus/dbus_export.h" |
11 | 11 |
| 12 // The functions defined here are used to gather DBus statistics, and |
| 13 // provide them in a format convenient for debugging. These functions are only |
| 14 // valid when called from the main thread (the thread which Initialize() was |
| 15 // called from). Calls from other threads will be ignored. |
| 16 |
12 namespace dbus { | 17 namespace dbus { |
13 namespace statistics { | 18 namespace statistics { |
14 | 19 |
15 // Enum to specify what level of detail to show in GetAsString | 20 // Enum to specify what level of detail to show in GetAsString |
16 enum ShowInString { | 21 enum ShowInString { |
17 SHOW_SERVICE = 0, // Service totals only | 22 SHOW_SERVICE = 0, // Service totals only |
18 SHOW_INTERFACE = 1, // Service + interface totals | 23 SHOW_INTERFACE = 1, // Service + interface totals |
19 SHOW_METHOD = 2, // Service + interface + method totals | 24 SHOW_METHOD = 2, // Service + interface + method totals |
20 }; | 25 }; |
21 | 26 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 const std::string& method, | 70 const std::string& method, |
66 int* sent, | 71 int* sent, |
67 int* received, | 72 int* received, |
68 int* blocking); | 73 int* blocking); |
69 } // namespace testing | 74 } // namespace testing |
70 | 75 |
71 } // namespace statistics | 76 } // namespace statistics |
72 } // namespace dbus | 77 } // namespace dbus |
73 | 78 |
74 #endif // DBUS_DBUS_STATISTICS_H_ | 79 #endif // DBUS_DBUS_STATISTICS_H_ |
OLD | NEW |