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

Side by Side Diff: dbus/dbus_statistics.cc

Issue 18083039: Make "Ignoring DBusStatistics::AddStat" a DVLOG instead of DLOG(WARNING) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | no next file » | 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 #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"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 TYPE_RECEIVED_SIGNALS, 77 TYPE_RECEIVED_SIGNALS,
78 TYPE_SENT_BLOCKING_METHOD_CALLS 78 TYPE_SENT_BLOCKING_METHOD_CALLS
79 }; 79 };
80 80
81 // Add a call to |method| for |interface|. See also MethodCall in message.h. 81 // Add a call to |method| for |interface|. See also MethodCall in message.h.
82 void AddStat(const std::string& service, 82 void AddStat(const std::string& service,
83 const std::string& interface, 83 const std::string& interface,
84 const std::string& method, 84 const std::string& method,
85 StatType type) { 85 StatType type) {
86 if (base::PlatformThread::CurrentId() != origin_thread_id_) { 86 if (base::PlatformThread::CurrentId() != origin_thread_id_) {
87 DLOG(WARNING) << "Ignoring DBusStatistics::AddStat call from thread: " 87 DVLOG(1) << "Ignoring DBusStatistics::AddStat call from thread: "
88 << base::PlatformThread::CurrentId(); 88 << base::PlatformThread::CurrentId();
89 return; 89 return;
90 } 90 }
91 Stat* stat = GetStat(service, interface, method, true); 91 Stat* stat = GetStat(service, interface, method, true);
92 DCHECK(stat); 92 DCHECK(stat);
93 if (type == TYPE_SENT_METHOD_CALLS) 93 if (type == TYPE_SENT_METHOD_CALLS)
94 ++stat->sent_method_calls; 94 ++stat->sent_method_calls;
95 else if (type == TYPE_RECEIVED_SIGNALS) 95 else if (type == TYPE_RECEIVED_SIGNALS)
96 ++stat->received_signals; 96 ++stat->received_signals;
97 else if (type == TYPE_SENT_BLOCKING_METHOD_CALLS) 97 else if (type == TYPE_SENT_BLOCKING_METHOD_CALLS)
98 ++stat->sent_blocking_method_calls; 98 ++stat->sent_blocking_method_calls;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698