diff options
author | Oz Linden <oz@lindenlab.com> | 2017-03-01 11:53:18 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2017-03-01 11:53:18 -0500 |
commit | 089fb07c618e8f171716d28ae5ad594e3ee86261 (patch) | |
tree | 1bde43dadd700520e8f428902af7f7df4f0f64b6 /indra/newview/llvoicevivox.h | |
parent | ef5195f52a0ac13cc544906c8d7799dd39eb59ad (diff) |
VOICE-5: Add voice connection stats to the ViewerStats message
Diffstat (limited to 'indra/newview/llvoicevivox.h')
-rw-r--r-- | indra/newview/llvoicevivox.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/indra/newview/llvoicevivox.h b/indra/newview/llvoicevivox.h index 81e924e438..355264133e 100644 --- a/indra/newview/llvoicevivox.h +++ b/indra/newview/llvoicevivox.h @@ -1038,5 +1038,37 @@ class LLVivoxSecurity : public LLSingleton<LLVivoxSecurity> std::string mAccountHandle; }; +class LLVoiceVivoxStats : public LLSingleton<LLVoiceVivoxStats> +{ + LLSINGLETON(LLVoiceVivoxStats); + LOG_CLASS(LLVoiceVivoxStats); + virtual ~LLVoiceVivoxStats(); + + private: + F64SecondsImplicit mStartTime; + + U32 mConnectCycles; + + F64 mConnectTime; + U32 mConnectAttempts; + + F64 mProvisionTime; + U32 mProvisionAttempts; + + F64 mEstablishTime; + U32 mEstablishAttempts; + + public: + + void reset(); + void connectionAttemptStart(); + void connectionAttemptEnd(bool success); + void provisionAttemptStart(); + void provisionAttemptEnd(bool success); + void establishAttemptStart(); + void establishAttemptEnd(bool success); + LLSD read(); +}; + #endif //LL_VIVOX_VOICE_CLIENT_H |