forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Clank SSM]: Implement NativeUnwinderAndroid.
This CL implements NativeUnwinderAndroid & tests for android unwinding support. It also enables StackSamplingProfilerTest on Android. A new target source_set is added, native_unwinder_android that contains NativeUnwinderAndroid. StackSamplingProfilerTest depends on it for android. Bug: 989102 Change-Id: Ie38fd99ca5fb053e1881d0977924b70a6fbc1e9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2055743 Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Mike Wittman <wittman@chromium.org> Cr-Commit-Position: refs/heads/master@{#759283}
- Loading branch information
Etienne Pierre-doray
authored and
Commit Bot
committed
Apr 15, 2020
1 parent
4770e1d
commit 38e3a62
Showing
12 changed files
with
835 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
base/android/javatests/src/org/chromium/base/profiler/TestSupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2020 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package org.chromium.base.profiler; | ||
|
||
import org.chromium.base.annotations.CalledByNative; | ||
import org.chromium.base.annotations.JNINamespace; | ||
import org.chromium.base.annotations.NativeMethods; | ||
|
||
/** | ||
* Helper to run code through JNI layer to test JNI unwinding. | ||
*/ | ||
@JNINamespace("base") | ||
public final class TestSupport { | ||
@CalledByNative | ||
public static void callWithJavaFunction(long context) { | ||
TestSupportJni.get().invokeCallbackFunction(context); | ||
} | ||
|
||
@NativeMethods | ||
interface Natives { | ||
void invokeCallbackFunction(long context); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.