| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |