Click here to Skip to main content
14,975,411 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to know if there is a way to calculate the memory space before and after a certain function call or a program .. something like the time stamp to calculate the execution time ..
I'm asking this because I want to test the performance of my code regarding memory space because I'm using a trie data structure .. and I need to present in my defense the performance of my project regarding certain aspects ..

I'm using windows

Thank you
Updated 27-Apr-13 8:28am
Kenneth Haugland 27-Apr-13 15:39pm
This sounds like a compiler issue, and they might have the kind of tool you want. However you dant say which one you use so I cant tell you what to do.

1 solution

For debug only, look at the _CrtMem... functions: _CrtMemCheckpoint, _CrtMemDifference, and the related functions. They are the ones I used to use for C++, but sadly I don't think I have any remaining examples.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900