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

Side by Side Diff: base/trace_event/blame_context.h

Issue 1916843003: Ensure Origin Thread Affinity for BlameContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use origin thread affinity Created 4 years, 7 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
« no previous file with comments | « no previous file | base/trace_event/blame_context.cc » ('j') | base/trace_event/blame_context.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TRACE_EVENT_BLAME_CONTEXT_H_ 5 #ifndef BASE_TRACE_EVENT_BLAME_CONTEXT_H_
6 #define BASE_TRACE_EVENT_BLAME_CONTEXT_H_ 6 #define BASE_TRACE_EVENT_BLAME_CONTEXT_H_
7 7
8 #include <inttypes.h> 8 #include <inttypes.h>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/threading/thread_checker.h"
12 #include "base/trace_event/trace_log.h" 13 #include "base/trace_event/trace_log.h"
13 14
14 namespace base { 15 namespace base {
15 namespace trace_event { 16 namespace trace_event {
16 class TracedValue; 17 class TracedValue;
17 } 18 }
18 19
19 namespace trace_event { 20 namespace trace_event {
20 21
21 // A blame context represents a logical unit to which we want to attribute 22 // A blame context represents a logical unit to which we want to attribute
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 const char* name_; 114 const char* name_;
114 const char* type_; 115 const char* type_;
115 const char* scope_; 116 const char* scope_;
116 const int64_t id_; 117 const int64_t id_;
117 118
118 const char* parent_scope_; 119 const char* parent_scope_;
119 const int64_t parent_id_; 120 const int64_t parent_id_;
120 121
121 const unsigned char* category_group_enabled_; 122 const unsigned char* category_group_enabled_;
122 123
124 ThreadChecker thread_checker_;
125 scoped_refptr<SingleThreadTaskRunner> task_runner_;
126 WeakPtrFactory<BlameContext> weak_factory_;
127
123 DISALLOW_COPY_AND_ASSIGN(BlameContext); 128 DISALLOW_COPY_AND_ASSIGN(BlameContext);
124 }; 129 };
125 130
126 } // namespace trace_event 131 } // namespace trace_event
127 } // namespace base 132 } // namespace base
128 133
129 #endif // BASE_TRACE_EVENT_BLAME_CONTEXT_H_ 134 #endif // BASE_TRACE_EVENT_BLAME_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/blame_context.cc » ('j') | base/trace_event/blame_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698