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

Unified Diff: net/base/host_resolver_impl.cc

Issue 12082090: [net] Add WifiPhyMode to SystemProfile (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix logic Created 7 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 side-by-side diff with in-line comments
Download patch
Index: net/base/host_resolver_impl.cc
diff --git a/net/base/host_resolver_impl.cc b/net/base/host_resolver_impl.cc
index ba59569de7f90d6066ceba20ccc8b28b7b34178d..db76b25bf1209432848ebdcde86cf5acebc106b1 100644
--- a/net/base/host_resolver_impl.cc
+++ b/net/base/host_resolver_impl.cc
@@ -1982,6 +1982,10 @@ void HostResolverImpl::CacheResult(const Key& key,
base::TimeDelta ttl) {
if (cache_.get())
cache_->Set(key, entry, base::TimeTicks::Now(), ttl);
+ base::TimeTicks then = base::TimeTicks::Now();
rvargas (doing something else) 2013/02/12 02:42:33 You don't mean to check this in, right?
szym 2013/02/12 04:53:43 No, sorry, this is just my shamefully dirty way of
+ WifiPhyMode phy_mode = GetWifiPhyMode();
+ UMA_HISTOGRAM_TIMES("WifiPHY.Time", base::TimeTicks::Now() - then);
+ UMA_HISTOGRAM_COUNTS("WifiPHY.Mode", phy_mode);
}
void HostResolverImpl::RemoveJob(Job* job) {

Powered by Google App Engine
This is Rietveld 408576698