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 #include "dbus/dbus_statistics.h" | 5 #include "dbus/dbus_statistics.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 | 15 |
16 namespace dbus { | 16 namespace dbus { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Used to store dbus statistics sorted alphabetically by service, interface, | 20 // Used to store dbus statistics sorted alphabetically by service, interface, |
21 // then method (using std::string <). | 21 // then method (using std::string <). |
22 struct Stat { | 22 struct Stat { |
23 Stat(const std::string& service, | 23 Stat(const std::string& service, |
24 const std::string& interface, | 24 const std::string& interface, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 *sent = stat->sent_method_calls; | 274 *sent = stat->sent_method_calls; |
275 *received = stat->received_signals; | 275 *received = stat->received_signals; |
276 *blocking = stat->sent_blocking_method_calls; | 276 *blocking = stat->sent_blocking_method_calls; |
277 return true; | 277 return true; |
278 } | 278 } |
279 | 279 |
280 } // namespace testing | 280 } // namespace testing |
281 | 281 |
282 } // namespace statistics | 282 } // namespace statistics |
283 } // namespace dbus | 283 } // namespace dbus |
OLD | NEW |