1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cpup.md 3.76 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

cpup

Command Function

This command is used to query the CPU usage of the system.

Syntax

cpup [mode] [taskID]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

mode

Indicates the period in which the CPU usage is to be queried. By default, the CPU usage within the last 10 seconds is displayed.

  • 0: displays the CPU usage of the system within the last 10 seconds.
  • 1: displays the CPU usage of the system within the last 1 second.
  • Other value: displays the total CPU usage since the system is started.

[0, 0xFFFFFFFF]

taskID

Indicates the task ID.

[0, 0xFFFFFFFF]

Usage

  • If the parameters are not specified, the CPU usage within the last 10 seconds is displayed.
  • If only the mode parameter is specified, the CPU usage within the specified period is displayed.
  • If both the mode and taskID parameters are specified, the CPU usage of the specified task within the given period is displayed.

Example

Enter cpup 1 5.

Output

Figure 1 CPU usage

1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助