diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-02-08 12:31:08 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-06-24 16:01:06 +0100 |
commit | 8a3e7581e70b9937db392aa24f6885d3bcc00fe8 (patch) | |
tree | 515427b4e2cbf05385a8b95450d800d6571588b4 /bus/connection.h | |
parent | 2351f57081c0bb59beda6659e51499147b29bd5b (diff) | |
download | dbus-8a3e7581e70b9937db392aa24f6885d3bcc00fe8.tar.gz |
BusConnections: add usage stats for well-known names, match rules
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34040
Diffstat (limited to 'bus/connection.h')
-rw-r--r-- | bus/connection.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bus/connection.h b/bus/connection.h index 4b9a754b..c9360212 100644 --- a/bus/connection.h +++ b/bus/connection.h @@ -138,4 +138,17 @@ dbus_bool_t bus_transaction_add_cancel_hook (BusTransaction * void *data, DBusFreeFunction free_data_function); +/* called by stats.c, only present if DBUS_ENABLE_STATS */ +int bus_connections_get_n_active (BusConnections *connections); +int bus_connections_get_n_incomplete (BusConnections *connections); +int bus_connections_get_total_match_rules (BusConnections *connections); +int bus_connections_get_peak_match_rules (BusConnections *connections); +int bus_connections_get_peak_match_rules_per_conn (BusConnections *connections); +int bus_connections_get_total_bus_names (BusConnections *connections); +int bus_connections_get_peak_bus_names (BusConnections *connections); +int bus_connections_get_peak_bus_names_per_conn (BusConnections *connections); + +int bus_connection_get_peak_match_rules (DBusConnection *connection); +int bus_connection_get_peak_bus_names (DBusConnection *connection); + #endif /* BUS_CONNECTION_H */ |