diff options
author | bcwhite <bcwhite@chromium.org> | 2016-02-01 13:07:56 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-01 21:10:17 +0000 |
commit | 5cb99ebcf2cf1450e7a68e7d7fd3d11ce0549175 (patch) | |
tree | 8b8c7a106a6f446d0ccaa49275bdae4fa1fa2cba /content | |
parent | 73fb42c1d2867e2dd3756b1fce0f45d1fa9bee44 (diff) | |
download | chromium_src-5cb99ebcf2cf1450e7a68e7d7fd3d11ce0549175.zip chromium_src-5cb99ebcf2cf1450e7a68e7d7fd3d11ce0549175.tar.gz chromium_src-5cb99ebcf2cf1450e7a68e7d7fd3d11ce0549175.tar.bz2 |
Support "shared" histograms between processes.
Histograms have tradionally been held on the local heap and
passed between processes using RPCs or simply lost when that
process stops. Shared histograms are read directly by another
process.
https://docs.google.com/document/d/1YvBXzi745UDjiFVLjP8IWUMFgYL9gDb2J4xuwcv-c7o/edit?usp=sharing
BUG=546019
TBR=mmenke,nasko,thakis
for base/*.{gn,gypi}, components/cronet/*, and content/child/*
Review URL: https://codereview.chromium.org/1425533011
Cr-Commit-Position: refs/heads/master@{#372760}
Diffstat (limited to 'content')
-rw-r--r-- | content/child/child_histogram_message_filter.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/child/child_histogram_message_filter.cc b/content/child/child_histogram_message_filter.cc index dbf2dd2..f749cf8 100644 --- a/content/child/child_histogram_message_filter.cc +++ b/content/child/child_histogram_message_filter.cc @@ -59,7 +59,10 @@ void ChildHistogramMessageFilter::UploadAllHistograms(int sequence_number) { } std::vector<std::string> deltas; - histogram_delta_serialization_->PrepareAndSerializeDeltas(&deltas); + // "false" to PerpareAndSerializeDeltas() indicates to *not* include + // histograms held in persistent storage on the assumption that they will be + // visible to the recipient through other means. + histogram_delta_serialization_->PrepareAndSerializeDeltas(&deltas, false); sender_->Send( new ChildProcessHostMsg_ChildHistogramData(sequence_number, deltas)); |