I just want to clarify that I'm not missing something obvious here. What I want to do is in a VuGen script I want to measure the amount of traffic the user sends to and receives from the system. So my one virtual user might send 250 KB of request data to the system and receive 500 KB of response data. I want to capture that total for the entire script. The only way I can see to do that easily is via:
This works but I have to put it after each request to the server. (One thing I do is a bundle a bunch up with the web_concurrent_start and web_concurrent_end statements and then I can reduce how many times I've got to use the above code.) Is there some easier way to get what I'm looking for? (I don't need to actually use this information in the script itself but what I'm doing is tallying it up for some calculations.)
I'm not a 100% on this, but if using Performance Monitor(its free with NT) is an option, I think it has counters included that measure the bytes sent and received from the agent that you are running from. I have used the Download Size function you are talking about but its seems cumbersome to get entire script info.