| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 "sky/shell/tracing_controller.h" | 5 #include "sky/shell/android/tracing_controller.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
| 12 #include "jni/TracingController_jni.h" | 12 #include "jni/TracingController_jni.h" |
| 13 | 13 |
| 14 namespace sky { | 14 namespace sky { |
| 15 namespace shell { | 15 namespace shell { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 Write(kStart); | 61 Write(kStart); |
| 62 base::trace_event::TraceLog::GetInstance()->Flush(base::Bind(&HandleChunk)); | 62 base::trace_event::TraceLog::GetInstance()->Flush(base::Bind(&HandleChunk)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool RegisterTracingController(JNIEnv* env) { | 65 bool RegisterTracingController(JNIEnv* env) { |
| 66 return RegisterNativesImpl(env); | 66 return RegisterNativesImpl(env); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace shell | 69 } // namespace shell |
| 70 } // namespace sky | 70 } // namespace sky |
| OLD | NEW |