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

Side by Side Diff: dbus/dbus_statistics.h

Issue 11761015: Make DBusStatistics only run on the main thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CHECK -> DCHECK Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | dbus/dbus_statistics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | dbus/dbus_statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698