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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 const char** arg_names, | 262 const char** arg_names, |
263 const unsigned char* arg_types, | 263 const unsigned char* arg_types, |
264 const unsigned long long* arg_values, | 264 const unsigned long long* arg_values, |
265 std::unique_ptr<ConvertableToTraceFormat>* convertable_values, | 265 std::unique_ptr<ConvertableToTraceFormat>* convertable_values, |
266 unsigned int flags); | 266 unsigned int flags); |
267 | 267 |
268 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, | 268 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, |
269 const char* name, | 269 const char* name, |
270 TraceEventHandle handle); | 270 TraceEventHandle handle); |
271 | 271 |
| 272 void UpdateTraceEventDurationExplicit( |
| 273 const unsigned char* category_group_enabled, |
| 274 const char* name, |
| 275 TraceEventHandle handle, |
| 276 const TimeTicks& now, |
| 277 const ThreadTicks& thread_now); |
| 278 |
272 void EndFilteredEvent(const unsigned char* category_group_enabled, | 279 void EndFilteredEvent(const unsigned char* category_group_enabled, |
273 const char* name, | 280 const char* name, |
274 TraceEventHandle handle); | 281 TraceEventHandle handle); |
275 | 282 |
276 int process_id() const { return process_id_; } | 283 int process_id() const { return process_id_; } |
277 | 284 |
278 uint64_t MangleEventId(uint64_t id); | 285 uint64_t MangleEventId(uint64_t id); |
279 | 286 |
280 // Exposed for unittesting: | 287 // Exposed for unittesting: |
281 | 288 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 501 |
495 FilterFactoryForTesting filter_factory_for_testing_; | 502 FilterFactoryForTesting filter_factory_for_testing_; |
496 | 503 |
497 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 504 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
498 }; | 505 }; |
499 | 506 |
500 } // namespace trace_event | 507 } // namespace trace_event |
501 } // namespace base | 508 } // namespace base |
502 | 509 |
503 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ | 510 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ |
OLD | NEW |