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/common/extensions/url_pattern.h" |
13 #include "chrome/renderer/chrome_content_renderer_client.h" | 13 #include "chrome/renderer/chrome_content_renderer_client.h" |
14 #include "chrome/renderer/prerender/prerender_helper.h" | 14 #include "chrome/renderer/prerender/prerender_helper.h" |
15 #include "chrome/renderer/renderer_histogram_snapshots.h" | 15 #include "chrome/renderer/renderer_histogram_snapshots.h" |
16 #include "content/public/renderer/document_state.h" | 16 #include "content/public/renderer/document_state.h" |
17 #include "content/public/renderer/render_view.h" | 17 #include "content/public/renderer/render_view.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon
se.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
24 | 24 |
25 using WebKit::WebDataSource; | 25 using WebKit::WebDataSource; |
26 using WebKit::WebFrame; | 26 using WebKit::WebFrame; |
27 using WebKit::WebPerformance; | 27 using WebKit::WebPerformance; |
28 using WebKit::WebString; | 28 using WebKit::WebString; |
29 using base::Time; | 29 using base::Time; |
30 using base::TimeDelta; | 30 using base::TimeDelta; |
31 using content::DocumentState; | 31 using content::DocumentState; |
32 | 32 |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 | 958 |
959 DCHECK(document_state); | 959 DCHECK(document_state); |
960 DCHECK(ds); | 960 DCHECK(ds); |
961 GURL url(ds->request().url()); | 961 GURL url(ds->request().url()); |
962 Time start = document_state->start_load_time(); | 962 Time start = document_state->start_load_time(); |
963 Time finish = document_state->finish_load_time(); | 963 Time finish = document_state->finish_load_time(); |
964 // TODO(mbelshe): should we log more stats? | 964 // TODO(mbelshe): should we log more stats? |
965 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " | 965 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " |
966 << url.spec(); | 966 << url.spec(); |
967 } | 967 } |
OLD | NEW |