asp.net tracing without flush
If I have some Trace.Write lines in my code but no listeners, will makeing those c开发者_开发知识库alls cause excessive memory usage/memory leak?
I'm assuming that trace.write is simply making an event call, not actually doing any data storage so based on this assumption the answer would be no, it doesnt consume a bunch of memory
No memory leak, but if you turn on tracing, even if there is no listener, there is some overhead in both processor and memory. I would turn off tracing if you aren't doing anything, which can easily be done in config.
精彩评论