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

Side by Side Diff: base/android/early_trace_event.h

Issue 874543003: Add support for TraceEvent before the native library is loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments, cleanup and a JNI unittest. Created 5 years, 9 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/android/base_jni_registrar.cc ('k') | base/android/early_trace_event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/early_trace_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698