commit | 02e7095841dbba569948f96a6eb02644ba9c4d2b | [log] [tgz] |
---|---|---|
author | Elad Alon <[email protected]> | Thu Aug 02 19:44:01 2018 |
committer | Commit Bot <[email protected]> | Thu Aug 02 19:44:01 2018 |
tree | 317d896ae16cac93794ebaed86429852f19c6132 | |
parent | 27518dd20e4096909e50e8b61fbdf2dadc75eeef [diff] |
Allow GZIP compression of remote-bound WebRTC event logs Compress remote-bound WebRTC event logs while writing them to disk. * Logs for which the file size budget did not allow covering the entire call, can now get more coverage. * Short calls, for which we could log the entire call anyhow, benefit from a lower cost in bandwidth when the log is uploaded. Compression takes place incrementally over the duration of the call, avoiding a spike in resource utilization. The file-size limit is very strictly abided by. Before compression takes place, an estimation is made over whether the compressed string will fit in the file without exceeding the budget. If not, the file is terminated (as it would for the uncompressed version). In the unlikely case that the estimation is mistaken, and we've compressed to the point that writing to the file would make it exceed its allotted maximum size, the file is dicarded. (It is infeasible to write a compression footer at that point.) Bug: 775415 Change-Id: Iab6b91815c4e9e855ced16668dbfd65ed64ad9f0 Reviewed-on: https://chromium-review.googlesource.com/1142147 Commit-Queue: Elad Alon <[email protected]> Reviewed-by: Guido Urdaneta <[email protected]> Cr-Commit-Position: refs/heads/master@{#580287}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .