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