Performance Issue
scruffyduck
Posts: 8
I today purchased ANTS 3.1 Standard Edition. I used it to profile the application that I am currently working on and got a bit of a surprise. The load sequence of my app is covered by a splash screen and normally takes around 10 seconds. With ANTS profiling it this extended to between 350 and 400 seconds. Now I don't have a very powerful machine but that does not seem right at all - makes ANTS practically useless. Once the app started then the profiler did not seem to have much effect and the app was responsive.
Any suggestions please?
Any suggestions please?
Jon Masterson
Comments
I'm curious to know what your code is doing while the spash screen displays -- usually you bind a bunch of assemblies or read configuration from a file, or in extreme circumstances maybe compile some dynamic code. ANTS Profiler is going to add varying degrees of overhead depending on what the code actually does.
What would be useful for you in any case if you are performance profiling would be to use the 'disable profiler' button to temporarily disable code instrumentation during the splash screen and enable the profiler again when it's done loading.
I hope that this helps.
Thanks for the reply. It is actually one of the methods that are called during the load that I want to optimize.
There are half a dozen things that happen during start up - loading settings, loading a couple of large data files and finally setting up a graphical display (it is a CAD type program) Each element takes longer than it should
I guess I need to turn off the splash-screen to see if that helps
27 seconds to serialize a file that takes a second or so without ANTS
Thanks for sharing your experience. ANTS Profiler is going to introduce some overhead -- my experience with serialization is that the .NET Framework compiles some dynamic code into temporary assemblies and runs thousands of methods. Normally this is pretty quick, but instrumenting all of this and collecting data about it is going to really slow it down. Not to mention that compiling in debug mode, and in ANTS Profiler detailed mode, disabling JIT optimizations seems to have a nasty cumulative effect.
But I'm glad that it's got you looking at the problem bits of code anyway!
I tried ANTS last year as a demo and did not recall the overhead so was surprised this time. Also my system is creaking which does not help. At least now I know what to expect I can plan accordingly
Hope that helps,
Robert
Red Gate
Thanks Robert I will give that a try also