bugGNU Octave - Bugs: bug #45660, Memory profiling via...

 
 

bug #45660: Memory profiling via "mtic" and "mtoc"

Submitter:  CH <atcl>
Submitted:  Thu 30 Jul 2015 06:21:23 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Aug 2018 03:32:11 PM UTC, comment #3: 

Since Matlab no longer supports this there is less incentive to implement it.  Also, there are easy workarounds.  The function 'whos' can return a structure array with a field 'bytes' for each variable that can be used to calculate the memory used.

Sample code:


memstart = sum ([(whos()).bytes])
... Code ...
memend = sum ([(whos()).bytes])
memused = memend - memstart


Marking as "Won't Fix" and closing report.

Rik <rik5>
Group administrator
Sun 02 Aug 2015 10:38:21 PM UTC, comment #2: 

Yes, indeed. This functionality is only available up to version 2008a; yet it provides a simple method for memory benchmarking.

This feature is only relevant if octave does not already provide a platform-agnostic function to obtain memory usage of user programs.

CH <atcl>
Sun 02 Aug 2015 10:24:55 PM UTC, comment #1: 

mtic/mtoc are not available in current Matlab,
and it appears that the profiling feature mentioned below is
also not functional in R2015a. Trying to run an example
gets "function not available on this PLATFORM."

Michael Godfrey <godfrey>
Group Member
Thu 30 Jul 2015 06:21:23 PM UTC, original submission:  

Matlab used to support unofficially


feature mtic
...
feature mtoc


for memory profiling of the enclosed functions.
More info here: http://undocumentedmatlab.com/blog/profiling-matlab-memory-usage

mtic and mtoc could be a useful additions to Octave.

CH <atcl>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by atcl (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 group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-15 rik5 StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code