OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 5 |
6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 void AddThreadNameMetadataEvents(); | 352 void AddThreadNameMetadataEvents(); |
353 | 353 |
354 #if defined(OS_ANDROID) | 354 #if defined(OS_ANDROID) |
355 void SendToATrace(char phase, | 355 void SendToATrace(char phase, |
356 const char* category, | 356 const char* category, |
357 const char* name, | 357 const char* name, |
358 int num_args, | 358 int num_args, |
359 const char** arg_names, | 359 const char** arg_names, |
360 const unsigned char* arg_types, | 360 const unsigned char* arg_types, |
361 const unsigned long long* arg_values); | 361 const unsigned long long* arg_values); |
362 void AddClockSyncMetadataEvents(); | |
363 static void ApplyATraceEnabledFlag(unsigned char* category_enabled); | 362 static void ApplyATraceEnabledFlag(unsigned char* category_enabled); |
364 #endif | 363 #endif |
365 | 364 |
366 // TODO(nduca): switch to per-thread trace buffers to reduce thread | 365 // TODO(nduca): switch to per-thread trace buffers to reduce thread |
367 // synchronization. | 366 // synchronization. |
368 // This lock protects TraceLog member accesses from arbitrary threads. | 367 // This lock protects TraceLog member accesses from arbitrary threads. |
369 Lock lock_; | 368 Lock lock_; |
370 int enable_count_; | 369 int enable_count_; |
371 NotificationCallback notification_callback_; | 370 NotificationCallback notification_callback_; |
372 std::vector<TraceEvent> logged_events_; | 371 std::vector<TraceEvent> logged_events_; |
(...skipping 15 matching lines...) Expand all Loading... |
388 const unsigned char* watch_category_; | 387 const unsigned char* watch_category_; |
389 std::string watch_event_name_; | 388 std::string watch_event_name_; |
390 | 389 |
391 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 390 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
392 }; | 391 }; |
393 | 392 |
394 } // namespace debug | 393 } // namespace debug |
395 } // namespace base | 394 } // namespace base |
396 | 395 |
397 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 396 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
OLD | NEW |