diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-26 03:03:29 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-04-26 19:54:18 +0200 |
commit | 341824687a619f3203d2378e82785823922a6143 (patch) | |
tree | d579cf7a9d069dd3b24271eca865862f66ab5a57 /src/common/crypto_pwbox.h | |
parent | 08d86e84086f7caf9f21228c8ed02d7f131168bb (diff) | |
download | tor-341824687a619f3203d2378e82785823922a6143.tar.gz tor-341824687a619f3203d2378e82785823922a6143.zip |
Approximate memory usage needed for the LZMA backend.
This patch adds support for measuring the approximated memory usage by
the individual `tor_lzma_compress_state_t` object instances.
The LZMA library provides the functions `lzma_easy_encoder_memusage()`
and `lzma_easy_decoder_memusage()` which is used to find the estimated
usage in bytes.
See: https://bugs.torproject.org/22066
Diffstat (limited to 'src/common/crypto_pwbox.h')
0 files changed, 0 insertions, 0 deletions