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

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

Issue 1221873002: Change sampler code events phase from instant to meta. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline + make use of AddMetadataEvent function Created 4 years, 10 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
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const TimeTicks& timestamp, 244 const TimeTicks& timestamp,
245 int num_args, 245 int num_args,
246 const char** arg_names, 246 const char** arg_names,
247 const unsigned char* arg_types, 247 const unsigned char* arg_types,
248 const unsigned long long* arg_values, 248 const unsigned long long* arg_values,
249 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, 249 const scoped_refptr<ConvertableToTraceFormat>* convertable_values,
250 unsigned int flags); 250 unsigned int flags);
251 251
252 // Adds a metadata event that will be written when the trace log is flushed. 252 // Adds a metadata event that will be written when the trace log is flushed.
253 void AddMetadataEvent( 253 void AddMetadataEvent(
254 const unsigned char* category_group_enabled,
255 const char* name,
256 int num_args,
257 const char** arg_names,
258 const unsigned char* arg_types,
259 const unsigned long long* arg_values,
260 const scoped_refptr<ConvertableToTraceFormat>* convertable_values,
261 unsigned int flags);
262
263 void AddMetadataEvent(
254 const char* name, 264 const char* name,
255 int num_args, 265 int num_args,
256 const char** arg_names, 266 const char** arg_names,
257 const unsigned char* arg_types, 267 const unsigned char* arg_types,
258 const unsigned long long* arg_values, 268 const unsigned long long* arg_values,
259 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, 269 const scoped_refptr<ConvertableToTraceFormat>* convertable_values,
260 unsigned int flags); 270 unsigned int flags);
261 271
262 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, 272 void UpdateTraceEventDuration(const unsigned char* category_group_enabled,
263 const char* name, 273 const char* name,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 subtle::AtomicWord generation_; 506 subtle::AtomicWord generation_;
497 bool use_worker_thread_; 507 bool use_worker_thread_;
498 508
499 DISALLOW_COPY_AND_ASSIGN(TraceLog); 509 DISALLOW_COPY_AND_ASSIGN(TraceLog);
500 }; 510 };
501 511
502 } // namespace trace_event 512 } // namespace trace_event
503 } // namespace base 513 } // namespace base
504 514
505 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 515 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698