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

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

Issue 2967023002: android: Add thread time to early TraceEvent, make timings more precise. (Closed)
Patch Set: Comment. Created 3 years, 5 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
« no previous file with comments | « base/trace_event/trace_event.h ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « base/trace_event/trace_event.h ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698