diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-12-16 02:41:21 +0100 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-12-16 02:41:21 +0100 |
commit | d4f4108601fe7e2614f30055ff5abe00460f6a12 (patch) | |
tree | f8c926dc04c1c476561fff41b6d7fb25eed3dd20 /src/or/or.h | |
parent | e44662a7f9af990753a89b0a831d3439a509c8ae (diff) | |
download | tor-d4f4108601fe7e2614f30055ff5abe00460f6a12.tar.gz tor-d4f4108601fe7e2614f30055ff5abe00460f6a12.zip |
Add MainloopStats option.
This patch adds support for MainloopStats that allow developers to get
main event loop statistics via Tor's heartbeat status messages. The new
status log message will show how many succesful, erroneous, and idle
event loop iterations we have had.
See: https://bugs.torproject.org/24605
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index aff43f195b..69f46cede2 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3972,6 +3972,8 @@ typedef struct { int HeartbeatPeriod; /**< Log heartbeat messages after this many seconds * have passed. */ + int MainloopStats; /**< Log main loop statistics as part of the + * heartbeat messages. */ char *HTTPProxy; /**< hostname[:port] to use as http proxy, if any. */ tor_addr_t HTTPProxyAddr; /**< Parsed IPv4 addr for http proxy, if any. */ |