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

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/time/time.h"
benjhayden 2016/08/30 04:17:24 Is this include still needed?
alexandermont 2016/08/30 19:01:22 Removed
9 #include "base/trace_event/trace_event.h"
benjhayden 2016/08/30 04:17:23 Is this include still needed?
alexandermont 2016/08/30 19:01:22 This is still needed because TRACE_EVENT... macros
10
11 namespace base {
12
13 namespace trace_event {
14
15 VideoPlaybackPersistentAsyncEvent::VideoPlaybackPersistentAsyncEvent()
16 : PersistentAsyncEvent() {}
17
18 VideoPlaybackPersistentAsyncEvent::~VideoPlaybackPersistentAsyncEvent() {}
19
20 void VideoPlaybackPersistentAsyncEvent::RecordStartEvent() {
21 TRACE_EVENT_ASYNC_BEGIN0("media,rail", "VideoPlayback", id_);
22 }
23
24 void VideoPlaybackPersistentAsyncEvent::RecordStartEventWithTimestamp(
25 int64_t timestamp) {
26 TRACE_EVENT_ASYNC_BEGIN_WITH_TIMESTAMP0("media,rail", "VideoPlayback", id_,
27 timestamp);
28 }
29
30 void VideoPlaybackPersistentAsyncEvent::RecordStopEvent() {
31 TRACE_EVENT_ASYNC_END0("media,rail", "VideoPlayback", id_);
32 }
33
34 } // namespace trace_event
35 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698