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 // TODO(bmcquade): delete this class in October 2016, as it is deprecated by the |
| 6 // new PageLoad.* UMA histograms. |
| 7 |
5 #include "chrome/renderer/page_load_histograms.h" | 8 #include "chrome/renderer/page_load_histograms.h" |
6 | 9 |
7 #include <stddef.h> | 10 #include <stddef.h> |
8 | 11 |
9 #include <memory> | 12 #include <memory> |
10 #include <string> | 13 #include <string> |
11 | 14 |
12 #include "base/command_line.h" | 15 #include "base/command_line.h" |
13 #include "base/logging.h" | 16 #include "base/logging.h" |
14 #include "base/metrics/field_trial.h" | 17 #include "base/metrics/field_trial.h" |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 Time start = document_state->start_load_time(); | 634 Time start = document_state->start_load_time(); |
632 Time finish = document_state->finish_load_time(); | 635 Time finish = document_state->finish_load_time(); |
633 // TODO(mbelshe): should we log more stats? | 636 // TODO(mbelshe): should we log more stats? |
634 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " | 637 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " |
635 << url.spec(); | 638 << url.spec(); |
636 } | 639 } |
637 | 640 |
638 void PageLoadHistograms::OnDestruct() { | 641 void PageLoadHistograms::OnDestruct() { |
639 delete this; | 642 delete this; |
640 } | 643 } |
OLD | NEW |