'Is there a way to find out the amount of memory used to run code in eclipse?

How can I find out the amount of memory used to run my code?

Is there a feature in eclipse that I can use?

If there isn't any, can I implement a mechanism in to determine it? How?

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source