diff options
| author | Erik Kundiman <erik@megapahit.org> | 2026-06-13 17:46:22 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2026-06-13 17:46:22 +0800 |
| commit | 9a8c5a4c14416636e8b83f3df63fbf87216f5aaa (patch) | |
| tree | 9d591e3136b7155f8fa5e5b9ff5c64ef29d30ec0 /indra/newview/llappviewer.cpp | |
| parent | 191669d38d232d2bd61a0dd2252c7a3543a2b467 (diff) | |
| parent | 1f65fa87c71c6e94fed74281e37bb4c7468cf0e8 (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.cpp | 5 |
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&) { |
