diff options
author | Rider Linden <rider@lindenlab.com> | 2017-07-28 14:07:25 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2017-07-28 14:07:25 -0700 |
commit | 57d5744f2c064ccb7bf8dd3dca2a24f6755297ac (patch) | |
tree | cef79679961afaf2ef43f21c6f4901ed3f536fb0 /indra/llcorehttp/httprequest.cpp | |
parent | b46697fcc155d026b5a951256d53581e7af20036 (diff) |
MAINT-7634: Move StatsAccumulator into llcommon, collect data sent and error codes from core.
Diffstat (limited to 'indra/llcorehttp/httprequest.cpp')
-rw-r--r-- | indra/llcorehttp/httprequest.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/llcorehttp/httprequest.cpp b/indra/llcorehttp/httprequest.cpp index e09f0c3b18..d9662c1232 100644 --- a/indra/llcorehttp/httprequest.cpp +++ b/indra/llcorehttp/httprequest.cpp @@ -37,7 +37,7 @@ #include "_httpopsetget.h" #include "lltimer.h" - +#include "httpstats.h" namespace { @@ -52,6 +52,7 @@ namespace LLCore // ==================================== // HttpRequest Implementation // ==================================== +HttpRequest::Statistics HttpRequest::mStatistics; HttpRequest::HttpRequest() @@ -62,6 +63,12 @@ HttpRequest::HttpRequest() mRequestQueue->addRef(); mReplyQueue.reset( new HttpReplyQueue() ); + + ++mStatistics.mCurrentRequests; + ++mStatistics.mTotalRequests; + + + LL_WARNS("HTTPRequest") << "New HttpRequest created (outstanding: " << mStatistics.mCurrentRequests << " total: " << mStatistics.mTotalRequests << ")" << LL_ENDL; } @@ -74,6 +81,9 @@ HttpRequest::~HttpRequest() } mReplyQueue.reset(); + --mStatistics.mCurrentRequests; + + LL_WARNS("HTTPRequest") << "HttpRequest destroyed (outstanding: " << mStatistics.mCurrentRequests << " total: " << mStatistics.mTotalRequests << ")" << LL_ENDL; } |