Code Optimisation Memory Monitoring
in
Programming Questions
•
3 years ago
Hi,
Currently testing and trying to figure memory manadgement in processing (and btw java) i'm wondering if is there are tools or libraries out there in order to monitor memory usage in processing ?
As far as i understood the JVM got some allocated memory once started (which can be see using Runtime totalMemory() method). So i do assume processing work on the same basis. So my first question :
Is it possible to know how much memory is allocated to processing sketch only (that means not processing sketch + processing IDE) ?
I found another method from the Runtime class which is freeMemory() which return JVM freeMemory().
So substract this value from the total memory before and after having instanciated objects should allow to measure memory consumed ?
I'm wondering too, which kind of units are returned by freeMemory() and totalMemory() ?
Is there any graphical tool or log manadgement to enable deep debugging or monitoring within processing ?
I apologize for the poor english and certainly bad appreciating post but i'm really new to all this with java.
Best regards,
O.
Currently testing and trying to figure memory manadgement in processing (and btw java) i'm wondering if is there are tools or libraries out there in order to monitor memory usage in processing ?
As far as i understood the JVM got some allocated memory once started (which can be see using Runtime totalMemory() method). So i do assume processing work on the same basis. So my first question :
Is it possible to know how much memory is allocated to processing sketch only (that means not processing sketch + processing IDE) ?
I found another method from the Runtime class which is freeMemory() which return JVM freeMemory().
So substract this value from the total memory before and after having instanciated objects should allow to measure memory consumed ?
I'm wondering too, which kind of units are returned by freeMemory() and totalMemory() ?
Is there any graphical tool or log manadgement to enable deep debugging or monitoring within processing ?
I apologize for the poor english and certainly bad appreciating post but i'm really new to all this with java.
Best regards,
O.
1