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

Side by Side Diff: base/android/base_jni_registrar.cc

Issue 1486053003: Android: Add support for TraceEvent before the native library is loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fix test. Created 4 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/BUILD.gn ('k') | base/android/early_trace_event_binding.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "base/android/base_jni_registrar.h" 5 #include "base/android/base_jni_registrar.h"
6 6
7 #include "base/android/animation_frame_time_histogram.h" 7 #include "base/android/animation_frame_time_histogram.h"
8 #include "base/android/apk_assets.h" 8 #include "base/android/apk_assets.h"
9 #include "base/android/application_status_listener.h" 9 #include "base/android/application_status_listener.h"
10 #include "base/android/build_info.h" 10 #include "base/android/build_info.h"
11 #include "base/android/callback_android.h" 11 #include "base/android/callback_android.h"
12 #include "base/android/command_line_android.h" 12 #include "base/android/command_line_android.h"
13 #include "base/android/content_uri_utils.h" 13 #include "base/android/content_uri_utils.h"
14 #include "base/android/context_utils.h" 14 #include "base/android/context_utils.h"
15 #include "base/android/cpu_features.h" 15 #include "base/android/cpu_features.h"
16 #include "base/android/early_trace_event_binding.h"
16 #include "base/android/event_log.h" 17 #include "base/android/event_log.h"
17 #include "base/android/field_trial_list.h" 18 #include "base/android/field_trial_list.h"
18 #include "base/android/important_file_writer_android.h" 19 #include "base/android/important_file_writer_android.h"
19 #include "base/android/java_handler_thread.h" 20 #include "base/android/java_handler_thread.h"
20 #include "base/android/java_runtime.h" 21 #include "base/android/java_runtime.h"
21 #include "base/android/jni_android.h" 22 #include "base/android/jni_android.h"
22 #include "base/android/jni_registrar.h" 23 #include "base/android/jni_registrar.h"
23 #include "base/android/jni_utils.h" 24 #include "base/android/jni_utils.h"
24 #include "base/android/locale_utils.h" 25 #include "base/android/locale_utils.h"
25 #include "base/android/memory_pressure_listener_android.h" 26 #include "base/android/memory_pressure_listener_android.h"
(...skipping 17 matching lines...) Expand all
43 base::android::RegisterAnimationFrameTimeHistogram}, 44 base::android::RegisterAnimationFrameTimeHistogram},
44 {"ApkAssets", base::android::RegisterApkAssets}, 45 {"ApkAssets", base::android::RegisterApkAssets},
45 {"ApplicationStatusListener", 46 {"ApplicationStatusListener",
46 base::android::ApplicationStatusListener::RegisterBindings}, 47 base::android::ApplicationStatusListener::RegisterBindings},
47 {"BuildInfo", base::android::BuildInfo::RegisterBindings}, 48 {"BuildInfo", base::android::BuildInfo::RegisterBindings},
48 {"CallbackAndroid", base::android::RegisterCallbackAndroid}, 49 {"CallbackAndroid", base::android::RegisterCallbackAndroid},
49 {"CommandLine", base::android::RegisterCommandLine}, 50 {"CommandLine", base::android::RegisterCommandLine},
50 {"ContentUriUtils", base::RegisterContentUriUtils}, 51 {"ContentUriUtils", base::RegisterContentUriUtils},
51 {"ContextUtils", base::android::RegisterContextUtils}, 52 {"ContextUtils", base::android::RegisterContextUtils},
52 {"CpuFeatures", base::android::RegisterCpuFeatures}, 53 {"CpuFeatures", base::android::RegisterCpuFeatures},
54 {"EarlyTraceEvent", base::android::RegisterEarlyTraceEvent},
53 {"EventLog", base::android::RegisterEventLog}, 55 {"EventLog", base::android::RegisterEventLog},
54 {"FieldTrialList", base::android::RegisterFieldTrialList}, 56 {"FieldTrialList", base::android::RegisterFieldTrialList},
55 {"ImportantFileWriterAndroid", 57 {"ImportantFileWriterAndroid",
56 base::android::RegisterImportantFileWriterAndroid}, 58 base::android::RegisterImportantFileWriterAndroid},
57 {"JNIUtils", base::android::RegisterJNIUtils}, 59 {"JNIUtils", base::android::RegisterJNIUtils},
58 {"LocaleUtils", base::android::RegisterLocaleUtils}, 60 {"LocaleUtils", base::android::RegisterLocaleUtils},
59 {"MemoryPressureListenerAndroid", 61 {"MemoryPressureListenerAndroid",
60 base::android::MemoryPressureListenerAndroid::Register}, 62 base::android::MemoryPressureListenerAndroid::Register},
61 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings}, 63 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings},
62 {"PathService", base::android::RegisterPathService}, 64 {"PathService", base::android::RegisterPathService},
63 {"PathUtils", base::android::RegisterPathUtils}, 65 {"PathUtils", base::android::RegisterPathUtils},
64 {"PowerMonitor", base::RegisterPowerMonitor}, 66 {"PowerMonitor", base::RegisterPowerMonitor},
65 {"RecordHistogram", base::android::RegisterRecordHistogram}, 67 {"RecordHistogram", base::android::RegisterRecordHistogram},
66 {"RecordUserAction", base::android::RegisterRecordUserAction}, 68 {"RecordUserAction", base::android::RegisterRecordUserAction},
67 {"Runtime", base::android::JavaRuntime::Register}, 69 {"Runtime", base::android::JavaRuntime::Register},
68 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings}, 70 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings},
69 {"SysUtils", base::android::SysUtils::Register}, 71 {"SysUtils", base::android::SysUtils::Register},
70 {"ThreadUtils", base::RegisterThreadUtils}, 72 {"ThreadUtils", base::RegisterThreadUtils},
71 {"TraceEvent", base::android::RegisterTraceEvent}, 73 {"TraceEvent", base::android::RegisterTraceEvent},
72 }; 74 };
73 75
74 bool RegisterJni(JNIEnv* env) { 76 bool RegisterJni(JNIEnv* env) {
75 TRACE_EVENT0("startup", "base_android::RegisterJni"); 77 TRACE_EVENT0("startup", "base_android::RegisterJni");
76 return RegisterNativeMethods(env, kBaseRegisteredMethods, 78 return RegisterNativeMethods(env, kBaseRegisteredMethods,
77 arraysize(kBaseRegisteredMethods)); 79 arraysize(kBaseRegisteredMethods));
78 } 80 }
79 81
80 } // namespace android 82 } // namespace android
81 } // namespace base 83 } // namespace base
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/android/early_trace_event_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698