patchGNU Octave - Patches: patch #9746, wmemory.m - check memory usage of...


patch #9746: wmemory.m - check memory usage of process(es) on Windows

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Thu 17 Jan 2019 11:01:55 PM UTC  
Category:  Core : new function Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 22 May 2020 08:21:17 PM UTC, comment #2: 

It was perhaps more a proof of concept, motivated by Lars' contributions in the maintainers ML (IIRC).

Actually it's a bit of a dirty hack; I'm sure there are binary Windows library functions that return the required info more gracefully.

Anyway, let's keep this open, some time someone will be inspired to make a better version and maybe even cross-platform.

Philip Nienhuis <philipnienhuis>
Project Member
Fri 22 May 2020 07:17:27 AM UTC, comment #1: 

The scope of this function is very similar to "memory" (see patch #9924).
I'm not sure if we should close this as a duplicate.

On the other hand, this function allows querying memory information for other running processes. Something that cannot be done with "memory". Maybe it could be considered for a package. The "windows" package would probably be most suitable because the function is OS specific.

Markus M├╝tzel <mmuetzel>
Project Member
Thu 17 Jan 2019 11:01:55 PM UTC, original submission:  


This function is easily extended to other stuff; e.g., the output of "systeminfo" (rather than "tasklist") can be parsed to get total RAM and RAM in use.

Philip Nienhuis <philipnienhuis>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #46000:  wmemory.m added by philipnienhuis (2KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-23 philipnienhuis StatusReady For Test => None
    2019-01-18 philipnienhuis Summarywmemory.m - check memory usage of procss on Windows => wmemory.m - check memory usage of process(es) on Windows
    2019-01-17 philipnienhuis Attached File- => Added wmemory.m, #46000

    Back to the top

    Powered by Savane 3.6