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

Side by Side Diff: net/http/http_server_properties_manager.cc

Issue 2711803003: Add a histogram to track how many server configs has been persisted (Closed)
Patch Set: address Alexei's comments Created 3 years, 10 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/http/http_server_properties_manager.h" 5 #include "net/http/http_server_properties_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 // preferences. 768 // preferences.
769 UMA_HISTOGRAM_COUNTS("Net.CountOfAlternateProtocolServers", 769 UMA_HISTOGRAM_COUNTS("Net.CountOfAlternateProtocolServers",
770 alternative_service_map->size()); 770 alternative_service_map->size());
771 http_server_properties_impl_->SetAlternativeServiceServers( 771 http_server_properties_impl_->SetAlternativeServiceServers(
772 alternative_service_map); 772 alternative_service_map);
773 773
774 http_server_properties_impl_->SetSupportsQuic(last_quic_address); 774 http_server_properties_impl_->SetSupportsQuic(last_quic_address);
775 775
776 http_server_properties_impl_->SetServerNetworkStats(server_network_stats_map); 776 http_server_properties_impl_->SetServerNetworkStats(server_network_stats_map);
777 777
778 UMA_HISTOGRAM_COUNTS_1000("Net.CountOfQuicServerInfos",
779 quic_server_info_map->size());
780
778 http_server_properties_impl_->SetQuicServerInfoMap(quic_server_info_map); 781 http_server_properties_impl_->SetQuicServerInfoMap(quic_server_info_map);
779 782
780 // Update the prefs with what we have read (delete all corrupted prefs). 783 // Update the prefs with what we have read (delete all corrupted prefs).
781 if (detected_corrupted_prefs) 784 if (detected_corrupted_prefs)
782 ScheduleUpdatePrefsOnNetworkThread(DETECTED_CORRUPTED_PREFS); 785 ScheduleUpdatePrefsOnNetworkThread(DETECTED_CORRUPTED_PREFS);
783 } 786 }
784 787
785 // 788 //
786 // Update Preferences with data from the cached data. 789 // Update Preferences with data from the cached data.
787 // 790 //
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 if (!setting_prefs_) 1125 if (!setting_prefs_)
1123 ScheduleUpdateCacheOnPrefThread(); 1126 ScheduleUpdateCacheOnPrefThread();
1124 } 1127 }
1125 1128
1126 void HttpServerPropertiesManager::SetInitialized() { 1129 void HttpServerPropertiesManager::SetInitialized() {
1127 DCHECK(network_task_runner_->RunsTasksOnCurrentThread()); 1130 DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
1128 is_initialized_ = true; 1131 is_initialized_ = true;
1129 } 1132 }
1130 1133
1131 } // namespace net 1134 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698