Part 1
요약·해설
Build·실행 명령과 256-byte heap의 네 단계 출력값을 그대로 보존합니다.
Target
native_sim
Heap
256 bytes
Metrics
Allocated · Free · Max
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
EA8914CC0A0534129EF7E5F6411D490924165F71039D75DCB0044DB27818D028
.. zephyr:code-sample:: sys-heap
:name: System heap
Print system heap usage to the console.
Overview
********
A simple sample that can be used with any :ref:`supported board <boards>` and
prints system heap usage to the console.
Building
********
This application can be built on :ref:`native_sim <native_sim>` as follows:
.. zephyr-app-commands::
:zephyr-app: samples/basic/sys_heap
:host-os: unix
:board: native_sim
:goals: build
:compact:
To build for another board, change "native_sim" above to that board's name.
Running
*******
Run build/zephyr/zephyr.exe
Sample Output
*************
.. code-block:: console
System heap sample
allocated 0, free 196, max allocated 0, heap size 256
allocated 156, free 36, max allocated 156, heap size 256
allocated 100, free 92, max allocated 156, heap size 256
allocated 0, free 196, max allocated 156, heap size 256
Part 3
한국어 전문 번역
개요
지원되는 어떤 board에서도 사용할 수 있는 간단한 sample이며, system heap 사용량을 console에 출력합니다.
Build
native_sim에서 다음과 같이 application을 build할 수 있습니다.
west build -b native_sim samples/basic/sys_heap
다른 board용으로 build하려면 위 명령의 native_sim을 해당 board 이름으로 바꾸십시오.
실행
build/zephyr/zephyr.exe를 실행합니다.
출력 예
System heap sample
allocated 0, free 196, max allocated 0, heap size 256
allocated 156, free 36, max allocated 156, heap size 256
allocated 100, free 92, max allocated 156, heap size 256
allocated 0, free 196, max allocated 156, heap size 256
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.