none
System.Diagnostics.Trace - Does using the Trace class have a performace overhead? RRS feed

Answers

  • I think Trace will do both Debug mode and Release Mode .
    So it will increase the processing time.

    If not necessary,replace it by Debug.WriteLine()

    Thursday, February 14, 2008 9:54 AM
  • Logging / tracing is always a little bit overhead. You just need to make the good choice between what is necessary and what isn't.

     

     

     

    Geert Verhoeven
    Consultant @ Ausy Belgium

    My Personal Blog

    Thursday, February 14, 2008 10:06 AM

All replies

  • I forgot to add, I am making use of the Trace class in Winforms and also in a Windows Service.

     

    Thanks,

     

    Andrew

    Thursday, February 14, 2008 9:11 AM
  • I think Trace will do both Debug mode and Release Mode .
    So it will increase the processing time.

    If not necessary,replace it by Debug.WriteLine()

    Thursday, February 14, 2008 9:54 AM
  • Logging / tracing is always a little bit overhead. You just need to make the good choice between what is necessary and what isn't.

     

     

     

    Geert Verhoeven
    Consultant @ Ausy Belgium

    My Personal Blog

    Thursday, February 14, 2008 10:06 AM
  • I mainly have trace statments in my business/data layers. Infact everywhere in those layers.

     

    So at a guess, that may well be hindering overall application performance..

     

    Andrew

    Friday, May 9, 2008 1:18 PM