1 Star 0 Fork 5K

aaron / docs

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

free

Command Function

This command is used to display the system memory usage and the sizes of the text, data, rodata, and bss segments.

Syntax

free [-k | -m]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

No parameter

Displays the size in the unit of byte.

N/A

-k

Displays the size in the unit of KB.

N/A

-m

Displays the size in the unit of MB.

N/A

Usage

None

Example

Enter free, free -k, and free -m, respectively.

Output

Figure 1 Displaying the memory usage in three units

Table 2 Output description

Parameter

Description

total

Indicates the total size of the dynamic memory pool.

used

Indicates the size of the used memory.

free

Indicates the size of the unallocated memory.

heap

Indicates the size of the allocated heap.

text

Indicates the size of a code segment.

data

Indicates the size of a data segment.

rodata

Indicates the size of a read-only data segment.

bss

Indicates the size of the memory occupied by uninitialized global variables.

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

搜索帮助