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

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

Issue 2040663002: Tracing: Added necessary plumbing to make sure clocksync metadata events are always included. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « base/trace_event/trace_event_unittest.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_TRACE_LOG_H_ 5 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_
6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 const TimeTicks& timestamp, 266 const TimeTicks& timestamp,
267 int num_args, 267 int num_args,
268 const char** arg_names, 268 const char** arg_names,
269 const unsigned char* arg_types, 269 const unsigned char* arg_types,
270 const unsigned long long* arg_values, 270 const unsigned long long* arg_values,
271 std::unique_ptr<ConvertableToTraceFormat>* convertable_values, 271 std::unique_ptr<ConvertableToTraceFormat>* convertable_values,
272 unsigned int flags); 272 unsigned int flags);
273 273
274 // Adds a metadata event that will be written when the trace log is flushed. 274 // Adds a metadata event that will be written when the trace log is flushed.
275 void AddMetadataEvent( 275 void AddMetadataEvent(
276 char phase,
276 const unsigned char* category_group_enabled, 277 const unsigned char* category_group_enabled,
277 const char* name, 278 const char* name,
279 const TimeTicks& timestamp,
278 int num_args, 280 int num_args,
279 const char** arg_names, 281 const char** arg_names,
280 const unsigned char* arg_types, 282 const unsigned char* arg_types,
281 const unsigned long long* arg_values, 283 const unsigned long long* arg_values,
282 std::unique_ptr<ConvertableToTraceFormat>* convertable_values, 284 std::unique_ptr<ConvertableToTraceFormat>* convertable_values,
283 unsigned int flags); 285 unsigned int flags);
284 286
285 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, 287 void UpdateTraceEventDuration(const unsigned char* category_group_enabled,
286 const char* name, 288 const char* name,
287 TraceEventHandle handle); 289 TraceEventHandle handle);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 subtle::AtomicWord generation_; 524 subtle::AtomicWord generation_;
523 bool use_worker_thread_; 525 bool use_worker_thread_;
524 526
525 DISALLOW_COPY_AND_ASSIGN(TraceLog); 527 DISALLOW_COPY_AND_ASSIGN(TraceLog);
526 }; 528 };
527 529
528 } // namespace trace_event 530 } // namespace trace_event
529 } // namespace base 531 } // namespace base
530 532
531 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 533 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW
« no previous file with comments | « base/trace_event/trace_event_unittest.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698