OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/page_load_histograms.h" | 5 #include "chrome/renderer/page_load_histograms.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "chrome/common/chrome_constants.h" | 11 #include "chrome/common/chrome_constants.h" |
12 #include "chrome/renderer/navigation_state.h" | |
13 #include "chrome/renderer/render_thread.h" | 12 #include "chrome/renderer/render_thread.h" |
| 13 #include "content/renderer/navigation_state.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h" |
17 | 17 |
18 using base::Time; | 18 using base::Time; |
19 using base::TimeDelta; | 19 using base::TimeDelta; |
20 using WebKit::WebDataSource; | 20 using WebKit::WebDataSource; |
21 using WebKit::WebFrame; | 21 using WebKit::WebFrame; |
22 using WebKit::WebPerformance; | 22 using WebKit::WebPerformance; |
23 | 23 |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 861 |
862 DCHECK(state); | 862 DCHECK(state); |
863 DCHECK(ds); | 863 DCHECK(ds); |
864 GURL url(ds->request().url()); | 864 GURL url(ds->request().url()); |
865 Time start = state->start_load_time(); | 865 Time start = state->start_load_time(); |
866 Time finish = state->finish_load_time(); | 866 Time finish = state->finish_load_time(); |
867 // TODO(mbelshe): should we log more stats? | 867 // TODO(mbelshe): should we log more stats? |
868 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " | 868 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " |
869 << url.spec(); | 869 << url.spec(); |
870 } | 870 } |
OLD | NEW |