Capacitor plugin for obtaining system CPU utilization.
npm install capacitor-sys-cpu
npx cap syncecho(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
|---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
getCpuInfo() => Promise<CpuInfo>Returns: Promise<CpuInfo>
getOnlineCpus() => Promise<OnlineInfo>Returns: Promise<OnlineInfo>
getZoneTemp(options: { zone: Number; }) => Promise<{ temp: number; }>| Param | Type |
|---|---|
options |
{ zone: Number; } |
Returns: Promise<{ temp: number; }>
| Prop | Type |
|---|---|
load |
number |
| Prop | Type |
|---|---|
online |
string |
An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.
| Method | Signature | Description |
|---|---|---|
| toString | (radix?: number | undefined) => string | Returns a string representation of an object. |
| toFixed | (fractionDigits?: number | undefined) => string | Returns a string representing a number in fixed-point notation. |
| toExponential | (fractionDigits?: number | undefined) => string | Returns a string containing a number represented in exponential notation. |
| toPrecision | (precision?: number | undefined) => string | Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. |
| valueOf | () => number | Returns the primitive value of the specified object. |