Home | History | Annotate | Download | only in dbus

Lines Matching defs:Stat

23 struct Stat {
24 Stat(const std::string& service,
41 bool Compare(const Stat& other) const {
50 bool operator()(Stat* lhs, Stat* rhs) const {
57 typedef std::set<Stat*, Stat::PtrCompare> StatSet;
75 // Enum to specify which field in Stat to increment in AddStat
92 Stat* stat = GetStat(service, interface, method, true);
93 DCHECK(stat);
95 ++stat->sent_method_calls;
97 ++stat->received_signals;
99 ++stat->sent_blocking_method_calls;
104 // Look up the Stat entry in |stats_|. If |add_stat| is true, add a new entry
106 Stat* GetStat(const std::string& service,
111 scoped_ptr<Stat> stat(new Stat(service, interface, method));
112 StatSet::iterator found = stats_.find(stat.get());
117 found = stats_.insert(stat.release()).first;
199 const Stat* stat = *cur_iter;
200 sent += stat->sent_method_calls;
201 received += stat->received_signals;
202 sent_blocking += stat->sent_blocking_method_calls;
203 // If this is not the last stat, and if the next stat matches the current
204 // stat, continue.
206 (*next_iter)->service == stat->service &&
207 (show < SHOW_INTERFACE || (*next_iter)->interface == stat->interface) &&
208 (show < SHOW_METHOD || (*next_iter)->method == stat->method))
217 line += stat->service;
220 line += stat->interface;
222 line += "." + stat->method;
272 Stat* stat = g_dbus_statistics->GetStat(service, interface, method, false);
273 if (!stat)
275 *sent = stat->sent_method_calls;
276 *received = stat->received_signals;
277 *blocking = stat->sent_blocking_method_calls;