ClientData.IMethodProfilingHandler
public
static
interface
ClientData.IMethodProfilingHandler
| com.android.tradefed.device.server.ClientData.IMethodProfilingHandler |
Handlers able to act on Method profiling info
Summary
Public methods | |
|---|---|
abstract
void
|
onEndFailure(Client client, String message)
Called when method tracing failed to end on the VM side |
abstract
void
|
onStartFailure(Client client, String message)
Called when method tracing failed to start |
abstract
void
|
onSuccess(String remoteFilePath, Client client)
Called when a method tracing was successful. |
abstract
void
|
onSuccess(byte[] data, Client client)
Called when a method tracing was successful. |
Public methods
onEndFailure
public abstract void onEndFailure (Client client, String message)
Called when method tracing failed to end on the VM side
| Parameters | |
|---|---|
client |
Client: the client that was profiled. |
message |
String: an optional (null ok) error message to be displayed. |
onStartFailure
public abstract void onStartFailure (Client client, String message)
Called when method tracing failed to start
| Parameters | |
|---|---|
client |
Client: the client that was profiled. |
message |
String: an optional (null ok) error message to be displayed. |
onSuccess
public abstract void onSuccess (String remoteFilePath,
Client client)Called when a method tracing was successful.
| Parameters | |
|---|---|
remoteFilePath |
String: the device-side path of the trace file. |
client |
Client: the client that was profiled. |
onSuccess
public abstract void onSuccess (byte[] data,
Client client)Called when a method tracing was successful.
| Parameters | |
|---|---|
data |
byte: the data containing the trace file, streamed from the VM |
client |
Client: the client that was profiled. |