25 #include <dbus/dbus-resources.h>
26 #include <dbus/dbus-internals.h>
61 #ifdef DBUS_ENABLE_STATS
63 long peak_unix_fd_value;
145 last_ref = (counter->
refcount == 0);
178 #ifdef DBUS_ENABLE_STATS
179 if (counter->peak_size_value < counter->
size_value)
180 counter->peak_size_value = counter->
size_value;
184 _dbus_verbose (
"Adjusting counter %ld by %ld = %ld\n",
189 ((old < counter->notify_size_guard_value &&
209 DBusCounterNotifyFunction notify_function =
NULL;
210 void *notify_data =
NULL;
221 if (notify_function !=
NULL)
222 (* notify_function) (counter, notify_data);
247 #ifdef DBUS_ENABLE_STATS
253 _dbus_verbose (
"Adjusting counter %ld by %ld = %ld\n",
258 ((old < counter->notify_unix_fd_guard_value &&
304 long size_guard_value,
305 long unix_fd_guard_value,
306 DBusCounterNotifyFunction
function,
318 #ifdef DBUS_ENABLE_STATS
320 _dbus_counter_get_peak_size_value (
DBusCounter *counter)
322 return counter->peak_size_value;
326 _dbus_counter_get_peak_unix_fd_value (
DBusCounter *counter)
328 return counter->peak_unix_fd_value;