blink/bindings: Record compressed size and savings for ParkableString.

Records the total size of parkable strings, the total compressed size, the
average compression ratio and the total savings from compression. As these
values are correlated, separate histograms are required.

The recording happens 30s after compression tasks are kicked off, provided that
the renderer's state (foreground/background) hasn't changed in the meantime, to
help with the interpretation of results. 30s is chosen as it's long enough for
compression to be done, and short enough to minimize the risk of the renderer
getting killed and/or moving back to foreground.

Also remove an outdated comment in parkable_string.cc.

Bug: 877044
Change-Id: Ic8cf4a410d182387ffd1d37b23d84b5426d227cb
Reviewed-on: https://chromium-review.googlesource.com/c/1323549
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Steven Holte <holte@chromium.org>
Commit-Queue: Benoit L <lizeb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606800}
5 files changed