Reputation: 29009
I'm fooling around with WCF, and would like to see how many messages I send/receive, and how large these messages are.
I tried activated WCF tracing, and ended up with a real huge trace file, but I found no way to extract the simple message size from this.
There sure must be some way to get this? Maybe I missed some parameters in tracing?
Upvotes: 11
Views: 6279
Reputation: 852
you could also build interceptors in WCF and capture and log this information on your own.
http://msdn.microsoft.com/en-us/library/ms751495.aspx
Upvotes: -1
Reputation: 12770
Besides using something like Wireshark (nee ethereal) you could look at something like Fiddler which has other benefits as well. It shows content length for all request/response and allows you to view the content in several ways.
Upvotes: 5
Reputation: 8141
The WCF Service Trace Viewer tool allows you to open the huge trace file and analyze many aspects of your messages. Make sure you've also turned on message logging, so the messages themselves get logged too (with properties such as size...)
Upvotes: 3