public class SamplingProfilerIntegration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SNAPSHOT_DIR |
Constructor and Description |
---|
SamplingProfilerIntegration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEnabled()
Is profiling enabled?
|
static void |
start()
Starts the profiler if profiling is enabled.
|
static void |
writeSnapshot(String processName,
PackageInfo packageInfo)
Writes a snapshot if profiling is enabled.
|
static void |
writeZygoteSnapshot()
Writes the zygote's snapshot to internal storage if profiling is enabled.
|
public static final String SNAPSHOT_DIR
public static boolean isEnabled()
public static void start()
public static void writeSnapshot(String processName, PackageInfo packageInfo)
public static void writeZygoteSnapshot()