com.android.ddmlib
Interface ClientData.IHprofDumpHandler

Enclosing class:
ClientData

public static interface ClientData.IHprofDumpHandler

Handlers able to act on HPROF dumps.


Method Summary
 void onEndFailure(Client client, String message)
          Called when a hprof dump failed to end on the VM side
 void onSuccess(byte[] data, Client client)
          Called when a HPROF dump was successful.
 void onSuccess(String remoteFilePath, Client client)
          Called when a HPROF dump succeeded.
 

Method Detail

onSuccess

void onSuccess(String remoteFilePath,
               Client client)
Called when a HPROF dump succeeded.

Parameters:
remoteFilePath - the device-side path of the HPROF file.
client - the client for which the HPROF file was.

onSuccess

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

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

onEndFailure

void onEndFailure(Client client,
                  String message)
Called when a hprof dump 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.