OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_ANDROID_EARLY_TRACE_EVENT_H_ |
| 6 #define BASE_ANDROID_EARLY_TRACE_EVENT_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include <string> |
| 11 #include <vector> |
| 12 |
| 13 #include "base/time/time.h" |
| 14 |
| 15 namespace base { |
| 16 namespace android { |
| 17 |
| 18 bool RegisterEarlyTraceEvent(JNIEnv* env); |
| 19 |
| 20 // A trace event that was recorded before the native library was initialized. |
| 21 struct EarlyTraceEvent { |
| 22 EarlyTraceEvent(); |
| 23 ~EarlyTraceEvent(); |
| 24 |
| 25 std::string name; |
| 26 long thread_id; |
| 27 TimeTicks begin_timestamp; |
| 28 TimeTicks begin_thread_time; |
| 29 TimeTicks end_timestamp; |
| 30 TimeTicks end_thread_time; |
| 31 }; |
| 32 |
| 33 void GetAllEarlyTraceEvents(std::vector<EarlyTraceEvent>* trace_events); |
| 34 |
| 35 } // namespace android |
| 36 } // namespace base |
| 37 |
| 38 #endif // BASE_ANDROID_EARLY_TRACE_EVENT_H_ |
OLD | NEW |