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?
2 件のコメント
Walter Roberson
2022 年 9 月 13 日
It would not surprise me if you could use a .NET method to examine memory size.
回答 (1 件)
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
https://www.mathworks.com/matlabcentral/answers/583955-get-the-status-using-system-command-when-program-has-been-closed#answer_485480 gives an example of starting a process using System.Diagnostics.Process
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!