| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/trace_event_binding.h" | 5 #include "base/android/trace_event_binding.h" |
| 6 | 6 |
| 7 #include <jni.h> | 7 #include <jni.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/macros.h" |
| 13 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 14 #include "base/trace_event/trace_event_impl.h" | 15 #include "base/trace_event/trace_event_impl.h" |
| 15 #include "jni/TraceEvent_jni.h" | 16 #include "jni/TraceEvent_jni.h" |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 namespace android { | 19 namespace android { |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 const char kJavaCategory[] = "Java"; | 23 const char kJavaCategory[] = "Java"; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 TraceEventDataConverter converter(env, jname, nullptr); | 150 TraceEventDataConverter converter(env, jname, nullptr); |
| 150 TRACE_EVENT_COPY_ASYNC_END0(kJavaCategory, converter.name(), jid); | 151 TRACE_EVENT_COPY_ASYNC_END0(kJavaCategory, converter.name(), jid); |
| 151 } | 152 } |
| 152 | 153 |
| 153 bool RegisterTraceEvent(JNIEnv* env) { | 154 bool RegisterTraceEvent(JNIEnv* env) { |
| 154 return RegisterNativesImpl(env); | 155 return RegisterNativesImpl(env); |
| 155 } | 156 } |
| 156 | 157 |
| 157 } // namespace android | 158 } // namespace android |
| 158 } // namespace base | 159 } // namespace base |
| OLD | NEW |