Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Side by Side Diff: base/trace_event/video_playback_pae.cc

Issue 2159323002: Add tracing AutoOpenCloseEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review changes Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698