diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-10-17 15:26:04 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-10-17 15:26:04 -0400 |
commit | c4f2ad1bc2ba08437de19fd6129035b6cbc6e0e1 (patch) | |
tree | fa3ccbd12fd90c6ee67a5cf6aa217f451e7fed73 /indra/newview/llviewerdisplay.cpp | |
parent | 9927ac2561eaa4aed94bd82a90d006f614c6cf05 (diff) |
Add the latest viewer stats packet into Frame Profile dump file.
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
-rw-r--r-- | indra/newview/llviewerdisplay.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index 1f4502323c..e8c9b569ee 100644 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -79,6 +79,7 @@ #include "llviewerparcelmgr.h" #include "llviewerregion.h" #include "llviewershadermgr.h" +#include "llviewerstats.h" #include "llviewertexturelist.h" #include "llviewerwindow.h" #include "llvoavatarself.h" @@ -1085,6 +1086,9 @@ void getProfileStatsContext(boost::json::object& stats) context.emplace("parcelid", parcel->getLocalID()); } context.emplace("time", LLDate::now().toHTTPDateString("%Y-%m-%dT%H:%M:%S")); + + // supplement with stats packet + stats.emplace("stats", LlsdToJson(get_viewer_stats())); } std::string getProfileStatsFilename() |