Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
497e8420
Commit
497e8420
authored
11 years ago
by
Brad Payne (Vir Linden)
Browse files
Options
Downloads
Patches
Plain Diff
SH-4456 FIX - added info to metrics for viewer version tags.
parent
f426f8a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llvoavatarself.cpp
+22
-0
22 additions, 0 deletions
indra/newview/llvoavatarself.cpp
with
22 additions
and
0 deletions
indra/newview/llvoavatarself.cpp
+
22
−
0
View file @
497e8420
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
#include
"llsdutil.h"
#include
"llsdutil.h"
#include
"llstartup.h"
#include
"llstartup.h"
#include
"llsdserialize.h"
#include
"llsdserialize.h"
#include
"llversioninfo.h"
#if LL_MSVC
#if LL_MSVC
// disable boost::lexical_cast warning
// disable boost::lexical_cast warning
...
@@ -2373,11 +2374,29 @@ LLSD summarize_by_buckets(std::vector<LLSD> in_records,
...
@@ -2373,11 +2374,29 @@ LLSD summarize_by_buckets(std::vector<LLSD> in_records,
return
result
;
return
result
;
}
}
// Valid characters for tsdb are alphanumeric, _-./. Others must be cleaned out.
void
sanitize_for_tsdb_tag
(
std
::
string
&
s
)
{
for
(
std
::
string
::
iterator
it
=
s
.
begin
();
it
!=
s
.
end
();
++
it
)
{
if
(
std
::
isalnum
(
*
it
)
||
*
it
==
'.'
||
*
it
==
'_'
||
*
it
==
'-'
||
*
it
==
'/'
)
{
continue
;
}
*
it
=
'_'
;
}
}
void
LLVOAvatarSelf
::
sendViewerAppearanceChangeMetrics
()
void
LLVOAvatarSelf
::
sendViewerAppearanceChangeMetrics
()
{
{
static
volatile
bool
reporting_started
(
false
);
static
volatile
bool
reporting_started
(
false
);
static
volatile
S32
report_sequence
(
0
);
static
volatile
S32
report_sequence
(
0
);
std
::
string
viewer_version_channel
=
LLVersionInfo
::
getChannel
();
sanitize_for_tsdb_tag
(
viewer_version_channel
);
std
::
string
viewer_version_short
=
LLVersionInfo
::
getShortVersion
();
std
::
string
viewer_version_build
=
llformat
(
"%d"
,
LLVersionInfo
::
getBuild
());
LLSD
msg
;
// = metricsData();
LLSD
msg
;
// = metricsData();
msg
[
"message"
]
=
"ViewerAppearanceChangeMetrics"
;
msg
[
"message"
]
=
"ViewerAppearanceChangeMetrics"
;
msg
[
"session_id"
]
=
gAgentSessionID
;
msg
[
"session_id"
]
=
gAgentSessionID
;
...
@@ -2386,6 +2405,9 @@ void LLVOAvatarSelf::sendViewerAppearanceChangeMetrics()
...
@@ -2386,6 +2405,9 @@ void LLVOAvatarSelf::sendViewerAppearanceChangeMetrics()
msg
[
"initial"
]
=
!
reporting_started
;
msg
[
"initial"
]
=
!
reporting_started
;
msg
[
"break"
]
=
false
;
msg
[
"break"
]
=
false
;
msg
[
"duration"
]
=
mTimeSinceLastRezMessage
.
getElapsedTimeF32
();
msg
[
"duration"
]
=
mTimeSinceLastRezMessage
.
getElapsedTimeF32
();
msg
[
"viewer_version_channel"
]
=
viewer_version_channel
;
msg
[
"viewer_version_short"
]
=
viewer_version_short
;
msg
[
"viewer_version_build"
]
=
viewer_version_build
;
// Status of our own rezzing.
// Status of our own rezzing.
msg
[
"rez_status"
]
=
LLVOAvatar
::
rezStatusToString
(
getRezzedStatus
());
msg
[
"rez_status"
]
=
LLVOAvatar
::
rezStatusToString
(
getRezzedStatus
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment