public final class HardCoderUtil
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
getCpuFreqByCoreId(int coreId)
get the cpu frequency of the core
|
static long[] |
getCurrCpuFreq()
get the cpu frequency of the current core
|
static int |
getInt(java.lang.String string,
int def) |
static long |
getLong(java.lang.String string,
long def) |
static long[] |
getMyProcCpuTime()
get process cpu time
|
static int |
getThreadCoreId(int linuxTid)
identify in which core this thread is running
|
public static long[] getMyProcCpuTime()
public static int getThreadCoreId(int linuxTid)
linuxTid - thread idpublic static long getCpuFreqByCoreId(int coreId)
coreId - core idpublic static long[] getCurrCpuFreq()
public static int getInt(java.lang.String string,
int def)
public static long getLong(java.lang.String string,
long def)