summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatarself.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-03-05 14:19:39 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-03-05 14:19:39 -0500
commitcc762ba60493a2dceba53929d10640a556a5e9ae (patch)
tree0f118d4df5ac7da98e75fd5edf6bdd2031f8ec50 /indra/newview/llvoavatarself.cpp
parenta37e121dbf3eba78f3f44f7028eb9849c7a3883e (diff)
SH-2970 WIP - simple LLSD metrics for self av
Diffstat (limited to 'indra/newview/llvoavatarself.cpp')
-rwxr-xr-xindra/newview/llvoavatarself.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index 467961c55e..0a60ef4fff 100755
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -2054,6 +2054,22 @@ const std::string LLVOAvatarSelf::debugDumpAllLocalTextureDataInfo() const
return text;
}
+// Dump avatar metrics data.
+LLSD LLVOAvatarSelf::metricsData()
+{
+ LLSD result;
+ result["id"] = getID();
+ result["rez_status"] = getRezzedStatus();
+ result["is_self"] = isSelf();
+ std::vector<S32> rez_counts;
+ LLVOAvatar::getNearbyRezzedStats(rez_counts);
+ result["nearby_cloud"] = rez_counts[0];
+ result["nearby_gray"] = rez_counts[1];
+ result["nearby_textured"] = rez_counts[2];
+
+ return result;
+}
+
const LLUUID& LLVOAvatarSelf::grabBakedTexture(EBakedTextureIndex baked_index) const
{
if (canGrabBakedTexture(baked_index))