OLD | NEW |
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 Loading... |
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, |
254 const char* name, | 255 const char* name, |
255 int num_args, | 256 int num_args, |
256 const char** arg_names, | 257 const char** arg_names, |
257 const unsigned char* arg_types, | 258 const unsigned char* arg_types, |
258 const unsigned long long* arg_values, | 259 const unsigned long long* arg_values, |
259 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, | 260 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, |
260 unsigned int flags); | 261 unsigned int flags); |
261 | 262 |
262 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, | 263 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, |
263 const char* name, | 264 const char* name, |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 subtle::AtomicWord generation_; | 497 subtle::AtomicWord generation_; |
497 bool use_worker_thread_; | 498 bool use_worker_thread_; |
498 | 499 |
499 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 500 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
500 }; | 501 }; |
501 | 502 |
502 } // namespace trace_event | 503 } // namespace trace_event |
503 } // namespace base | 504 } // namespace base |
504 | 505 |
505 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ | 506 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ |
OLD | NEW |