473,395 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Trace Overhead

I'm trying to strike a balance between tracing detail and application
performance. Clearly, if I have an EventLogTraceListener or
TextWriterTraceListener activated, performance will degrade because of the
related IO.

However, if I have no trace listeners running (i.e. TraceListenerCollection
is empty, including removal of DefaultTraceListener) what is the performance
overhead since effectively Trace.WriteLine has no place to write?

I do need to use Trace.WriteLine rather than Debug.WriteLine for
instrumentation of a released version of the application.

-Gregg
Nov 15 '05 #1
0 1079

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thorsten Tarrach | last post by:
Hallo, The best thing would be to implement a trace call in every procedure to write an entry in the log file: If MySwitch.TraceVerbose() then trace.writeline("Procedure xyz started with...
4
by: Brett Robichaud | last post by:
Does anyone know what kind of overhead is caused by enabling tracing in an ASP.NET 1.1 app? On my production servers I'd like to leave it enabled so I can view trace.axd to get a feel for the...
9
by: Joe Rattz | last post by:
I can't seem to get to trace.axd. I have turned tracing on in web.config. Here is how I currently have i configured: <trace enabled="true" requestLimit="10" pageOutput="false"...
16
by: Ricky W. Hunt | last post by:
Is there a way to watch a variables value in real-time without running in break mode? It seems you should just be able to give VB a list of variables/objects that you could see at any time without...
1
by: John Bailo | last post by:
I wrote a simple test program, console, that does one thing: log DateTime.Now to a trace file. I thought it would be lickety-split, but it's taking more than 10 minutes to write 1 million lines....
4
by: kplkumar | last post by:
This is what my supervisor is looking for. We want runtime debugging/trace logging. In other words, we want to log every method that was executed, perhaps the variables in it as well - everytime...
0
by: Aryan | last post by:
Hi All, My application was working fine and giving me proper trace messages, but now all of sudden it started showing expcetion as "Object reference not set to an instance of an object....
1
by: ofirmgr | last post by:
im trying to understand how the profiler works. so i started 2 profilers,one listen to another and I saw the profiler is running: exec sp_trace_create @P1 output, 1, NULL, NULL, NULL which means...
10
by: DoB | last post by:
As in the subject... What is an overhead cost conneted with using the /d:TRACE switch? The Trace class is a convenient and configurable logger, but it requires the executable to be built with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.