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

8 vues (au cours des 30 derniers jours)
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 commentaires
Walter Roberson
Walter Roberson le 13 Sep 2022
It would not surprise me if you could use a .NET method to examine memory size.
Rounak Saha Niloy
Rounak Saha Niloy le 13 Sep 2022
Hi Walter,
Can you elaborate it a bit?
Thanks!

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 13 Sep 2022
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

Catégories

En savoir plus sur Use COM Objects in MATLAB dans Help Center et File Exchange

Tags

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by