开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜