Log (de)compression bytes
authorNick Terrell <terrelln@fb.com>
Tue, 23 Jan 2018 04:58:54 +0000 (20:58 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 23 Jan 2018 05:23:49 +0000 (21:23 -0800)
commit0c20289b724cf462078cf70d0ea1487f67b45fa8
treea096e7e5128f7a8424710439416590ec373cfca8
parentb35b5a98a37b889bd6748d8cc3a7d357b9143e42
Log (de)compression bytes

Summary:
Log bytes before/after (de)compression to the logging backend. Use the codec name in the key, and for lz4/zstd also include the library version and compression level.

I chose the keys such that each individual piece as <= 15 characters, to be inlined. However, I chose readability of the keys over trying to squeeze the entire key in 15 characters.

Reviewed By: yfeldblum

Differential Revision: D6745720

fbshipit-source-id: 1249d203df610cb29c16e03f7a06ea90aea80418
folly/compression/Compression.cpp
folly/compression/Compression.h
folly/compression/Counters.h
folly/compression/Zlib.cpp
folly/compression/test/CompressionTest.cpp