Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: net/url_request/url_request_job.cc

Issue 149119: Create a more fine grained histogram of SDCH payload sizes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/histogram.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "net/base/auth.h" 10 #include "net/base/auth.h"
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 DCHECK(!IsCachedContent()); 588 DCHECK(!IsCachedContent());
589 589
590 base::TimeDelta duration = final_packet_time_ - request_time_snapshot_; 590 base::TimeDelta duration = final_packet_time_ - request_time_snapshot_;
591 switch (statistic) { 591 switch (statistic) {
592 case SDCH_DECODE: { 592 case SDCH_DECODE: {
593 UMA_HISTOGRAM_CLIPPED_TIMES("Sdch3.Network_Decode_Latency_F_a", duration, 593 UMA_HISTOGRAM_CLIPPED_TIMES("Sdch3.Network_Decode_Latency_F_a", duration,
594 base::TimeDelta::FromMilliseconds(20), 594 base::TimeDelta::FromMilliseconds(20),
595 base::TimeDelta::FromMinutes(10), 100); 595 base::TimeDelta::FromMinutes(10), 100);
596 UMA_HISTOGRAM_COUNTS_100("Sdch3.Network_Decode_Packets_b", 596 UMA_HISTOGRAM_COUNTS_100("Sdch3.Network_Decode_Packets_b",
597 static_cast<int>(observed_packet_count_)); 597 static_cast<int>(observed_packet_count_));
598 UMA_HISTOGRAM_COUNTS("Sdch3.Network_Decode_Bytes_Processed_a", 598 UMA_HISTOGRAM_CUSTOM_COUNTS("Sdch3.Network_Decode_Bytes_Processed_b",
599 static_cast<int>(bytes_observed_in_packets_)); 599 static_cast<int>(bytes_observed_in_packets_), 500, 100000, 100);
600 if (packet_times_.empty()) 600 if (packet_times_.empty())
601 return; 601 return;
602 UMA_HISTOGRAM_CLIPPED_TIMES("Sdch3.Network_Decode_1st_To_Last_a", 602 UMA_HISTOGRAM_CLIPPED_TIMES("Sdch3.Network_Decode_1st_To_Last_a",
603 final_packet_time_ - packet_times_[0], 603 final_packet_time_ - packet_times_[0],
604 base::TimeDelta::FromMilliseconds(20), 604 base::TimeDelta::FromMilliseconds(20),
605 base::TimeDelta::FromMinutes(10), 100); 605 base::TimeDelta::FromMinutes(10), 100);
606 606
607 DCHECK(max_packets_timed_ >= kSdchPacketHistogramCount); 607 DCHECK(max_packets_timed_ >= kSdchPacketHistogramCount);
608 DCHECK(kSdchPacketHistogramCount > 4); 608 DCHECK(kSdchPacketHistogramCount > 4);
609 if (packet_times_.size() <= 4) 609 if (packet_times_.size() <= 4)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 packet_times_[4] - packet_times_[3], 703 packet_times_[4] - packet_times_[3],
704 base::TimeDelta::FromMilliseconds(1), 704 base::TimeDelta::FromMilliseconds(1),
705 base::TimeDelta::FromSeconds(10), 100); 705 base::TimeDelta::FromSeconds(10), 100);
706 return; 706 return;
707 } 707 }
708 default: 708 default:
709 NOTREACHED(); 709 NOTREACHED();
710 return; 710 return;
711 } 711 }
712 } 712 }
OLDNEW
« no previous file with comments | « base/histogram.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698