Negative memory usage?

6 visualizaciones (últimos 30 días)
Matteo Manzini
Matteo Manzini el 25 de Mzo. de 2020
Respondida: Fangjun Jiang el 25 de Mzo. de 2020
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!

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 25 de Mzo. de 2020
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.

Más respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by