| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 12 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
| 13 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 14 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
| 16 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 | 1043 |
| 1042 DCHECK(document_state); | 1044 DCHECK(document_state); |
| 1043 DCHECK(ds); | 1045 DCHECK(ds); |
| 1044 GURL url(ds->request().url()); | 1046 GURL url(ds->request().url()); |
| 1045 Time start = document_state->start_load_time(); | 1047 Time start = document_state->start_load_time(); |
| 1046 Time finish = document_state->finish_load_time(); | 1048 Time finish = document_state->finish_load_time(); |
| 1047 // TODO(mbelshe): should we log more stats? | 1049 // TODO(mbelshe): should we log more stats? |
| 1048 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " | 1050 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " |
| 1049 << url.spec(); | 1051 << url.spec(); |
| 1050 } | 1052 } |
| OLD | NEW |