public class Spy extends Object
| Modifier and Type | Field and Description |
|---|---|
static Method |
AFTER_INVOKING_METHOD |
static Method |
AGENT_RESET_METHOD
代理重设方法
|
static Method |
BEFORE_INVOKING_METHOD |
static ClassLoader |
CLASSLOADER
arthas's classloader 引用
|
static Method |
ON_BEFORE_METHOD |
static Method |
ON_RETURN_METHOD |
static Method |
ON_THROWS_METHOD |
static Method |
THROW_INVOKING_METHOD |
| Constructor and Description |
|---|
Spy() |
| Modifier and Type | Method and Description |
|---|---|
static void |
destroy()
Clean up the reference to com.taobao.arthas.agent.AgentLauncher$1
to avoid classloader leak.
|
static void |
init(ClassLoader classLoader,
Method onBeforeMethod,
Method onReturnMethod,
Method onThrowsMethod,
Method beforeInvokingMethod,
Method afterInvokingMethod,
Method throwInvokingMethod)
用于普通的间谍初始化
|
static void |
initForAgentLauncher(ClassLoader classLoader,
Method onBeforeMethod,
Method onReturnMethod,
Method onThrowsMethod,
Method beforeInvokingMethod,
Method afterInvokingMethod,
Method throwInvokingMethod,
Method agentResetMethod)
用于启动线程初始化
|
public static volatile Method ON_BEFORE_METHOD
public static volatile Method ON_RETURN_METHOD
public static volatile Method ON_THROWS_METHOD
public static volatile Method BEFORE_INVOKING_METHOD
public static volatile Method AFTER_INVOKING_METHOD
public static volatile Method THROW_INVOKING_METHOD
public static volatile ClassLoader CLASSLOADER
public static volatile Method AGENT_RESET_METHOD
public static void init(ClassLoader classLoader, Method onBeforeMethod, Method onReturnMethod, Method onThrowsMethod, Method beforeInvokingMethod, Method afterInvokingMethod, Method throwInvokingMethod)
public static void initForAgentLauncher(ClassLoader classLoader, Method onBeforeMethod, Method onReturnMethod, Method onThrowsMethod, Method beforeInvokingMethod, Method afterInvokingMethod, Method throwInvokingMethod, Method agentResetMethod)
public static void destroy()
Copyright © 2019. All rights reserved.