Commit 6a83b5c7 authored by Shimi Zhang's avatar Shimi Zhang Committed by Commit Bot

aw: Remove a redundant HeapProfilingTestShim.java file

This file isn't used anywhere, there is a almost the same copy of it
in components/heap_profiling/, which is in use.

Bug: None
Change-Id: Ia53649c4de7f403c0a37cde28dd05c8d6480fede
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635086Reviewed-by: default avatarErik Chen <erikchen@chromium.org>
Reviewed-by: default avatarChangwan Ryu <changwan@chromium.org>
Commit-Queue: Shimi Zhang <ctzsm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664991}
parent 006607c6
// Copyright 2018 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.android_webview.test;
import org.chromium.base.annotations.MainDex;
/**
* Provides direct access to heap_profiling_shim, which in turn forwards to
* heap_profiling::TestDriver. Only used for testing.
*/
@MainDex
public class HeapProfilingTestShim {
public HeapProfilingTestShim() {
mNativeHeapProfilingTestShim = nativeInit();
}
/**
* When |dynamicallyStartProfiling| is true, the test harness is
* responsible for starting profiling for the relevant processes.
* When |pseudoStacks| is true, the stacks use trace-event based stacks
* rather than native stacks.
*/
public boolean runTestForMode(String mode, boolean dynamicallyStartProfiling, String stackMode,
boolean streamSamples, boolean shouldSample, boolean sampleEverything) {
return nativeRunTestForMode(mNativeHeapProfilingTestShim, mode, dynamicallyStartProfiling,
stackMode, streamSamples, shouldSample, sampleEverything);
}
/**
* Clean up the C++ side of this class.
* After the call, this class instance shouldn't be used.
*/
public void destroy() {
if (mNativeHeapProfilingTestShim != 0) {
nativeDestroy(mNativeHeapProfilingTestShim);
mNativeHeapProfilingTestShim = 0;
}
}
private long mNativeHeapProfilingTestShim;
private native long nativeInit();
private native void nativeDestroy(long nativeHeapProfilingTestShim);
private native boolean nativeRunTestForMode(long nativeHeapProfilingTestShim, String mode,
boolean dynamicallyStartProfiling, String stackMode, boolean streamSamples,
boolean shouldSample, boolean sampleEverything);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment