My program (C#) is composed of a static class which sends out messages (basically acts like a data-feed) and many individual class instances which listens on those messages and when encounter one that got their id on, do some calculations and raise another event开发者_高级运维. I want to measure what resource does each instance of these listener class takes during waiting and calculations so I can asses how many instances I can create simultaneously.
I only know the basic use of VS profiler and would like to find further references on how to achieve this kind of tests.
Thanks
UPDATE:
I know about profiling software. What I am looking for is the method of measuring only a single class instance within the application.
I've never used the in built VS profiler as I fell in love with dotTrace on VS 2008. Give it a go, it is very accurate and granular in both memory usage and processor usage.
http://www.jetbrains.com/profiler/
This might help: http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/
精彩评论