diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2010-08-02 15:06:14 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2010-12-03 16:47:51 +0100 |
commit | 5dfdf075ac0cb3df66443011d3faa2c95dc53629 (patch) | |
tree | 7bd0ca2f3b876499a6310740ef838bf74afaeced /src/or/rephist.h | |
parent | 520182579a4c186e94a1ada1d66c09c89ee3f3c4 (diff) | |
download | tor-5dfdf075ac0cb3df66443011d3faa2c95dc53629.tar.gz tor-5dfdf075ac0cb3df66443011d3faa2c95dc53629.zip |
Add metric on uni/bidirectional connection usage.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r-- | src/or/rephist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h index 8f5a34dacf..efc8531ac0 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -76,5 +76,11 @@ void rep_hist_buffer_stats_add_circ(circuit_t *circ, time_t rep_hist_buffer_stats_write(time_t now); void rep_hist_buffer_stats_term(void); +void rep_hist_conn_stats_init(time_t now); +void rep_hist_note_or_conn_bytes(uint64_t conn_id, size_t num_read, + size_t num_written, time_t when); +time_t rep_hist_conn_stats_write(time_t now); +void rep_hist_conn_stats_term(void); + #endif |