필터 지우기
필터 지우기

Negative memory usage?

조회 수: 4 (최근 30일)
Matteo Manzini
Matteo Manzini 2020년 3월 25일
답변: Fangjun Jiang 2020년 3월 25일
I used the command [txtRpt, sRpt] = sldiagnostics('sys', 'CompileStats') to check the memory usage of a Simulink model ('sys').
However, I sometimes get a negative value. What does it mean?
Thanks in advance for the response!

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 3월 25일
According to the document
ProcessMemUsage—The amount of memory consumed in each phase. Sum the ProcessMemUsage across all the phases to get the memory consumption during the entire operation:
TotalMemory = sum([statRpt.Statistics(:).ProcessMemUsage])
So, if step 2 uses less memory than step 1, then the number will be negative. Keep in mind, this is the memory usage of the computer that compiles or builds the model, not the memory usage of the model itself.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by