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/trace_event/trace_event.h" |
| 9 |
| 10 namespace base { |
| 11 |
| 12 namespace trace_event { |
| 13 |
| 14 VideoPlaybackPersistentAsyncEvent::VideoPlaybackPersistentAsyncEvent() |
| 15 : PersistentAsyncEvent() {} |
| 16 |
| 17 VideoPlaybackPersistentAsyncEvent::~VideoPlaybackPersistentAsyncEvent() {} |
| 18 |
| 19 void VideoPlaybackPersistentAsyncEvent::RecordStartEvent() { |
| 20 TRACE_EVENT_ASYNC_BEGIN0("media,rail", "VideoPlayback", id_); |
| 21 } |
| 22 |
| 23 void VideoPlaybackPersistentAsyncEvent::RecordStartEventWithTimestamp( |
| 24 int64_t timestamp) { |
| 25 TRACE_EVENT_ASYNC_BEGIN_WITH_TIMESTAMP0("media,rail", "VideoPlayback", id_, |
| 26 timestamp); |
| 27 } |
| 28 |
| 29 void VideoPlaybackPersistentAsyncEvent::RecordStopEvent() { |
| 30 TRACE_EVENT_ASYNC_END0("media,rail", "VideoPlayback", id_); |
| 31 } |
| 32 |
| 33 } // namespace trace_event |
| 34 } // namespace base |
OLD | NEW |