com.android.ddmlib
Interface ClientData.IMethodProfilingHandler

Enclosing class:
ClientData

public static interface ClientData.IMethodProfilingHandler

Handlers able to act on Method profiling info


Method Summary
 void onEndFailure(Client client, String message)
          Called when method tracing failed to end on the VM side
 void onStartFailure(Client client, String message)
          Called when method tracing failed to start
 void onSuccess(byte[] data, Client client)
          Called when a method tracing was successful.
 void onSuccess(String remoteFilePath, Client client)
          Called when a method tracing was successful.
 

Method Detail

onSuccess

void onSuccess(String remoteFilePath,
               Client client)
Called when a method tracing was successful.

Parameters:
remoteFilePath - the device-side path of the trace file.
client - the client that was profiled.

onSuccess

void onSuccess(byte[] data,
               Client client)
Called when a method tracing was successful.

Parameters:
data - the data containing the trace file, streamed from the VM
client - the client that was profiled.

onStartFailure

void onStartFailure(Client client,
                    String message)
Called when method tracing failed to start

Parameters:
client - the client that was profiled.
message - an optional (null ok) error message to be displayed.

onEndFailure

void onEndFailure(Client client,
                  String message)
Called when method tracing failed to end on the VM side

Parameters:
client - the client that was profiled.
message - an optional (null ok) error message to be displayed.


Copyright © 2008-2012. All Rights Reserved.