Is it possible to profile memory usage of unit tests?
        Posted  
        
            by Rowland Shaw
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Rowland Shaw
        
        
        
        Published on 2010-05-28T15:11:12Z
        Indexed on 
            2010/05/28
            15:11 UTC
        
        
        Read the original article
        Hit count: 364
        
I'm looking at building some unit tests to ascertain if resources are leaking (or not) using the unit testing framework that comes with Visual Studio.
At present, I'm evaluating the latest version of ANTS Profiler, but I can't quite work out if it allows me to force a snapshot from code (so that I can take a snapshot, run a unit test a few hundred times, force a garbage collection, and take another snapshot, and save the results out for later analysis).
Is this possible to do with ANTS/Visual Studio or should I be exploring options with other profilers?
© Stack Overflow or respective owner