View Single Post
Old 04-28-2004, 03:31 PM   #1 (permalink)
Stompy
Banned from being Banned
 
Location: Donkey
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.
__________________
I love lamp.
Stompy is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73