Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 } | 85 } |
| 86 | 86 |
| 87 PerformanceTiming* Performance::timing() const | 87 PerformanceTiming* Performance::timing() const |
| 88 { | 88 { |
| 89 if (!m_timing) | 89 if (!m_timing) |
| 90 m_timing = PerformanceTiming::create(m_frame); | 90 m_timing = PerformanceTiming::create(m_frame); |
| 91 | 91 |
| 92 return m_timing.get(); | 92 return m_timing.get(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 void Performance::enableInspectorInstrumentation() const | |
| 96 { | |
| 97 frame()->enableWebPerfInspectorInstrumentation(); | |
|
pfeldman
2016/08/17 21:12:11
... which you call here.
| |
| 98 } | |
| 99 | |
| 95 DEFINE_TRACE(Performance) | 100 DEFINE_TRACE(Performance) |
| 96 { | 101 { |
| 97 visitor->trace(m_navigation); | 102 visitor->trace(m_navigation); |
| 98 visitor->trace(m_timing); | 103 visitor->trace(m_timing); |
| 99 DOMWindowProperty::trace(visitor); | 104 DOMWindowProperty::trace(visitor); |
| 100 PerformanceBase::trace(visitor); | 105 PerformanceBase::trace(visitor); |
| 101 } | 106 } |
| 102 | 107 |
| 103 } // namespace blink | 108 } // namespace blink |
| OLD | NEW |