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

3 ビュー (過去 30 日間)
Rounak Saha Niloy
Rounak Saha Niloy 2022 年 9 月 13 日
回答済み: Walter Roberson 2022 年 9 月 13 日
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
Walter Roberson 2022 年 9 月 13 日
It would not surprise me if you could use a .NET method to examine memory size.
Rounak Saha Niloy
Rounak Saha Niloy 2022 年 9 月 13 日
Hi Walter,
Can you elaborate it a bit?
Thanks!

サインインしてコメントする。

回答 (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 Center および File ExchangeSpreadsheets についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by