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

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: Address comments. Created 5 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
dsinclair 2015/02/09 21:11:20 nit: 2015 (and other new files)
Benoit L 2015/02/10 15:31:35 Done.
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

Powered by Google App Engine
This is Rietveld 408576698