diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 22:35:20 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 22:35:20 +0000 |
commit | 38bb6ca0deba1148c7b3df931e87c52a239bb07d (patch) | |
tree | 3d20218a9e716bb7ddf0a04609867f7a1f8fc1d6 /net | |
parent | a2d489b22f9e3f361adeaf7a09ae88510a2bb1e3 (diff) | |
download | chromium_src-38bb6ca0deba1148c7b3df931e87c52a239bb07d.zip chromium_src-38bb6ca0deba1148c7b3df931e87c52a239bb07d.tar.gz chromium_src-38bb6ca0deba1148c7b3df931e87c52a239bb07d.tar.bz2 |
Added yet one more histogram to help debug SDCH issues.
r=wtc
Review URL: http://codereview.chromium.org/46060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/sdch_filter.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/base/sdch_filter.cc b/net/base/sdch_filter.cc index fbe6a51..dadc610 100644 --- a/net/base/sdch_filter.cc +++ b/net/base/sdch_filter.cc @@ -63,7 +63,9 @@ SdchFilter::~SdchFilter() { // Filter chaining error, or premature teardown. SdchManager::SdchErrorRecovery(SdchManager::UNFLUSHED_CONTENT); UMA_HISTOGRAM_COUNTS("Sdch.UnflushedBytesIn", - static_cast<int>(filter_context().GetByteReadCount())); + static_cast<int>(filter_context().GetByteReadCount())); + UMA_HISTOGRAM_COUNTS("Sdch.UnflushedBufferSize", + dest_buffer_excess_.size()); UMA_HISTOGRAM_COUNTS("Sdch.UnflushedVcdiffIn", source_bytes_); UMA_HISTOGRAM_COUNTS("Sdch.UnflushedVcdiffOut", output_bytes_); } @@ -95,7 +97,7 @@ SdchFilter::~SdchFilter() { switch (decoding_status_) { case DECODING_IN_PROGRESS: { - UMA_HISTOGRAM_PERCENTAGE("Sdch.Network_Decode_Ratio",static_cast<int>( + UMA_HISTOGRAM_PERCENTAGE("Sdch.Network_Decode_Ratio", static_cast<int>( (filter_context().GetByteReadCount() * 100) / output_bytes_)); UMA_HISTOGRAM_CLIPPED_TIMES("Sdch.Network_Decode_Latency_F", duration, base::TimeDelta::FromMilliseconds(20), |