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

Side by Side Diff: Source/platform/scheduler/TracedTask.h

Issue 490913002: Adding flow traces for blink scheduler events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updates from Alex's comments Created 6 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 2014 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 #ifndef TracedTask_h
6 #define TracedTask_h
7
8 #include "platform/Task.h"
9 #include "platform/TraceLocation.h"
10
11 namespace blink {
12
13 class TracedTask {
14 public:
15 typedef Function<void()> Task;
16
17 void run() const;
18
19 private:
20
21 friend class Scheduler;
22 TracedTask(const Task&, const TraceLocation&, const char* traceName, int flo wTraceID);
23
24 uint64_t m_flowTraceID;
25 Task m_task;
26 TraceLocation m_location;
27 const char* m_traceName;
28
29 };
30
31 } // namespace blink
32
33 #endif // TracedTask_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698