OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/extensions/url_pattern.h" |
12 #include "chrome/renderer/renderer_histogram_snapshots.h" | 13 #include "chrome/renderer/renderer_histogram_snapshots.h" |
13 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
14 #include "content/renderer/navigation_state.h" | 15 #include "content/renderer/navigation_state.h" |
15 #include "content/renderer/render_view.h" | 16 #include "content/renderer/render_view.h" |
16 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
20 | 21 |
21 using base::Time; | 22 using base::Time; |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 | 894 |
894 DCHECK(state); | 895 DCHECK(state); |
895 DCHECK(ds); | 896 DCHECK(ds); |
896 GURL url(ds->request().url()); | 897 GURL url(ds->request().url()); |
897 Time start = state->start_load_time(); | 898 Time start = state->start_load_time(); |
898 Time finish = state->finish_load_time(); | 899 Time finish = state->finish_load_time(); |
899 // TODO(mbelshe): should we log more stats? | 900 // TODO(mbelshe): should we log more stats? |
900 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " | 901 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " |
901 << url.spec(); | 902 << url.spec(); |
902 } | 903 } |
OLD | NEW |