public class HCPerfManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
HCPerfManager.PerformanceTask
tasks need to be added to the start queue
|
static class |
HCPerfManager.PerformanceTaskStop
tasks need to be stopped
|
限定符和类型 | 字段和说明 |
---|---|
static int |
CPU_LEVEL_CANCEL |
static int |
CPU_LEVEL_KEEP |
static int |
GPU_LEVEL_CANCEL |
static int |
GPU_LEVEL_KEEP |
static int |
IO_LEVEL_CANCEL |
static int |
IO_LEVEL_KEEP |
构造器和说明 |
---|
HCPerfManager(HardCoderJNI.HCPerfManagerThread thread)
init the HCPerfManager
|
public static final int CPU_LEVEL_CANCEL
public static final int CPU_LEVEL_KEEP
public static final int GPU_LEVEL_CANCEL
public static final int GPU_LEVEL_KEEP
public static final int IO_LEVEL_CANCEL
public static final int IO_LEVEL_KEEP
public HCPerfManager(HardCoderJNI.HCPerfManagerThread thread)
thread
- a threadpublic int start(int delay, int cpuLevel, int ioLevel, int gpuLevel, int[] bindTids, int timeout, int scene, long action, int callerTid, java.lang.String tag)
delay
- delay to excutecpuLevel
- request cpu levelioLevel
- request io levelgpuLevel
- request gpu levelbindTids
- threads request to bind coretimeout
- expire timescene
- app sceneaction
- app actioncallerTid
- the thread call this requesttag
- request hashcodestop(int)
public boolean stop(int hashCode)
hashCode
- get when call start(int, int, int, int, int[], int, int, long, int, String)