summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-06-13 17:46:22 +0800
committerErik Kundiman <erik@megapahit.org>2026-06-13 17:46:22 +0800
commit9a8c5a4c14416636e8b83f3df63fbf87216f5aaa (patch)
tree9d591e3136b7155f8fa5e5b9ff5c64ef29d30ec0 /indra/newview/llappviewer.cpp
parent191669d38d232d2bd61a0dd2252c7a3543a2b467 (diff)
parent1f65fa87c71c6e94fed74281e37bb4c7468cf0e8 (diff)
Merge tag 'Second_Life_Release#1f65fa87-26.3' into 26.3
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index ded0649341..c83dcd15b6 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -156,6 +156,7 @@
#include <boost/algorithm/string.hpp>
#include <boost/regex.hpp>
#include <boost/throw_exception.hpp>
+#include <chrono>
#if LL_WINDOWS
# include <share.h> // For _SH_DENYWR in processMarkerFiles
@@ -1316,7 +1317,11 @@ bool LLAppViewer::frame()
{
try
{
+ const auto start = std::chrono::steady_clock::now();
ret = doFrame();
+ const auto end = std::chrono::steady_clock::now();
+ const U64 doframe_time_us = (U64)std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
+ LLTrace::sample(LLStatViewer::DOFRAME_TIME_US, doframe_time_us);
}
catch (const LLContinueError&)
{