John Kouraklis 94 Posted January 8, 2019 I need to write some benchmark tests (nothing sophisticated and highly accurate; just to get an idea of what is happening) So, I have a project with several procedures and they are all called in sequence. I can measure the time required but I'd also like to have the used memory by each test. I know how to get the used memory for a process (.exe file) but how do I handle a procedure? Then, I thought to create separate small projects with one manager project which will keep track of all these but I wonder if it can be done in one project Thanks Share this post Link to post
RonaldK 18 Posted January 8, 2019 1 hour ago, John Kouraklis said: I know how to get the used memory for a process (.exe file) but how do I handle a procedure? If the procedures works sequential, set flags while entering and leaving the procedure and ask the MemoryManager from a TThread how many memory is currently used. 2 Share this post Link to post
David Hoyle 68 Posted January 9, 2019 I believe CodeSite can log memory at any point but I’ve not tried it to see whether it’s suitable Share this post Link to post
John Kouraklis 94 Posted January 9, 2019 Can you please have a look at this attempt (demo code from a site that shows how to do timing) to measure the used memory? Please see Button4 Click event and ignore the message. It's irrelevant. Is the number about right? IntPowerDemoSource.zip Share this post Link to post