Adding CPU & Memory metrics for App
This commit is contained in:
parent
0d2aa5c027
commit
939747945e
9 changed files with 159 additions and 34 deletions
|
@ -762,9 +762,13 @@ Disables hardware acceleration for current app.
|
|||
|
||||
This method can only be called before app is ready.
|
||||
|
||||
### `app.getAppMemoryInfo()`
|
||||
### `app.getAppMemoryInfo()` _Deprecate_
|
||||
|
||||
Returns [ProcessMemoryInfo[]](structures/process-memory-info.md): Array of `ProcessMemoryInfo` objects that correspond to memory usage statistics of all the processes associated with the app.
|
||||
Returns [ProcessMetric[]](structures/process-metric.md): Array of `ProcessMetric` objects that correspond to memory and cpu usage statistics of all the processes associated with the app.
|
||||
|
||||
### `app.getAppMetrics()`
|
||||
|
||||
Returns [ProcessMetric[]](structures/process-metric.md): Array of `ProcessMetric` objects that correspond to memory and cpu usage statistics of all the processes associated with the app.
|
||||
|
||||
### `app.setBadgeCount(count)` _Linux_ _macOS_
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
# ProcessMemoryInfo Object
|
||||
|
||||
* `pid` Integer - Process id of the process.
|
||||
* `memory` [MemoryInfo](memory-info.md) - Memory information of the process.
|
6
docs/api/structures/process-metric.md
Normal file
6
docs/api/structures/process-metric.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# ProcessMetric Object
|
||||
|
||||
* `pid` Integer - Process id of the process.
|
||||
* `type` String - Process type (Browser or Tab or GPU etc).
|
||||
* `memory` [MemoryInfo](memory-info.md) - Memory information of the process.
|
||||
* `cpu` [CPUUsage](cpu-usage.md) - CPU Of the process
|
Loading…
Add table
Add a link
Reference in a new issue