ASP.net and Page/Application Tracing
I have an asp.net application that references a DLL I've created. I wanted to test the speed of the application as a whole so I added an argument to each class' constructor that takes in the TraceContext arg.
Now, within my code in the DLL, I have Traces usually around each major function. If I disable Tracing via the web.config, will leaving those Trace.Write methods in the code slow things down, or does it just disregard them? I figure this is a good way to test the performance of my apps as I can leave the trace code inside the DLL and just enable tracing whenever I want to see overall page performance, but I'm unsure of the effects of leaving Trace code within my DLLs. |
They have absolutely no effects on performance whatsoever!
Leaving the trace statements inside the code while switching tracing of or on in the web.config is the whole purpose of application tracing. When trace enabled="false", trace statements will be completely disregarded, the same as comments. |
All times are GMT -8. The time now is 12:01 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project