Chromium Code Reviews| 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) { |