Is there any way to monitor the memory usage of a specific software using MATLAB?

3 次查看(过去 30 天)
In my code, I use actxserver to run MS Excel and in MS Excel, there is a VBA code which runs another software named Maxsurf Modeler. Is it possible to monitor the memory usage of software Maxsurf Modeler via MATLAB?

回答(1 个)

Walter Roberson
Walter Roberson 2022-9-13
If you start a process using the .NET control System.Diagnostics.Process then the WorkingSet property should return the amount of memory being used for the process; see https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.workingset64?view=net-6.0

类别

Help CenterFile Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by