OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/trace_event/video_playback_pae.h" |
| 6 |
| 7 #include "base/macros.h" |
| 8 #include "base/time/time.h" |
| 9 #include "base/trace_event/trace_event.h" |
| 10 |
| 11 namespace base { |
| 12 |
| 13 namespace trace_event { |
| 14 |
| 15 VideoPlaybackPersistentAsyncEvent::VideoPlaybackPersistentAsyncEvent() |
| 16 : PersistentAsyncEvent() {} |
| 17 |
| 18 VideoPlaybackPersistentAsyncEvent::~VideoPlaybackPersistentAsyncEvent() {} |
| 19 |
| 20 void VideoPlaybackPersistentAsyncEvent::RecordBeginEvent() { |
| 21 TRACE_EVENT_ASYNC_BEGIN0("media,rail", "VideoPlayback", id()); |
| 22 } |
| 23 |
| 24 void VideoPlaybackPersistentAsyncEvent::RecordBeginEventWithTimestamp( |
| 25 base::TimeTicks timestamp) { |
| 26 TRACE_EVENT_ASYNC_BEGIN_WITH_TIMESTAMP0("media,rail", "VideoPlayback", id(), |
| 27 timestamp.ToInternalValue()); |
| 28 } |
| 29 |
| 30 void VideoPlaybackPersistentAsyncEvent::RecordEndEvent() { |
| 31 TRACE_EVENT_ASYNC_END0("media,rail", "VideoPlayback", id()); |
| 32 } |
| 33 |
| 34 } // namespace trace_event |
| 35 } // namespace base |
OLD | NEW |