| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef PlatformInstrumentation_h | 5 #ifndef PlatformInstrumentation_h |
| 6 #define PlatformInstrumentation_h | 6 #define PlatformInstrumentation_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/instrumentation/tracing/TraceEvent.h" | 9 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "platform/wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class PLATFORM_EXPORT PlatformInstrumentation { | 14 class PLATFORM_EXPORT PlatformInstrumentation { |
| 15 public: | 15 public: |
| 16 class LazyPixelRefTracker : TraceEvent::TraceScopedTrackableObject<void*> { | 16 class LazyPixelRefTracker : TraceEvent::TraceScopedTrackableObject<void*> { |
| 17 public: | 17 public: |
| 18 LazyPixelRefTracker(void* instance) | 18 LazyPixelRefTracker(void* instance) |
| 19 : TraceEvent::TraceScopedTrackableObject<void*>(CategoryName, | 19 : TraceEvent::TraceScopedTrackableObject<void*>(CategoryName, |
| 20 LazyPixelRef, | 20 LazyPixelRef, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 lazyPixelRefId); | 62 lazyPixelRefId); |
| 63 } | 63 } |
| 64 | 64 |
| 65 inline void PlatformInstrumentation::didDecodeLazyPixelRef() { | 65 inline void PlatformInstrumentation::didDecodeLazyPixelRef() { |
| 66 TRACE_EVENT_END0(CategoryName, DecodeLazyPixelRefEvent); | 66 TRACE_EVENT_END0(CategoryName, DecodeLazyPixelRefEvent); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // PlatformInstrumentation_h | 71 #endif // PlatformInstrumentation_h |
| OLD | NEW |