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

 
 

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

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group administrator
Thu 17 Jan 2019 11:01:55 PM UTC, original submission:  

Enjoy.

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>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-f8d8.
    Corresponding source code