posted 07-04-2002 10:25 PM
Hi everyone. I am a newbie to testing. I am testing vb6 applications. I have been asked to report the amount of memory consumed by collections in my modules.how do i achieve that ? Help me...please
If you mean how much memory is consumed by the executable then this should be fairly easy to monitor.
You are obviously using some flavor of windows, so I would suggest that the easiest way to minitor what your application is using resource wise is to to launch task manager (right click on task bar or select 'Task Manager' from a Ctrl+Alt+Del). Now find out what the executable's name is and track Memory Usage and VM (Virtual Memory which can be added to your display by selecting 'View->Select Columns)) Size in the process list as you start up your applications and perform a number of tasks.
I would suggest that as you perform tasks memory usage will increase while the executable is busy doing something and then release the memory once processing has finished. This is ideally what you want to see, if memory usage keeps increasing or is not released after processing is complete then this indicates a memory leak.
posted 07-05-2002 03:42 AM
You can also use PERFMON in windows. Type perfmon from command-line and play a little on it. You can log memory usage to a file which may be useful to backtrace the system status after tests.