diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-10-21 11:42:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-21 11:42:06 -0400 |
commit | 98380ef4265ca5590125ea505e3b8d41de24c049 (patch) | |
tree | d56e88e4321de8c439b1cc8d7b19ac24fcac0b7a /indra/newview/llviewerdisplay.cpp | |
parent | 99937bf3d4c68fa32cdc888b8cd9b9ed9d43fdbf (diff) | |
parent | 413a8ada3661180c06403e06b98685a1f7139a7a (diff) |
Merge pull request #2882 from secondlife/nat/frame-profile-stats
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..cb741e4af9 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(capture_viewer_stats(true))); } std::string getProfileStatsFilename() |