diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2026-05-27 19:06:49 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-27 19:06:49 +0300 |
| commit | 1f65fa87c71c6e94fed74281e37bb4c7468cf0e8 (patch) | |
| tree | fe801eaece49362709b411e7811e172ce5a87b17 /indra/newview/llappviewer.cpp | |
| parent | 412509181814baad066425bd1bfdfe3d50b62324 (diff) | |
| parent | ae2f146167a2599dbaca1ef70aafef078c1c3849 (diff) | |
Merge pull request #5870 from secondlife/maxim/26.3-5368
#5368 add Leap API to query statistics
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 59056381e1..0b46e2ccc3 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -150,6 +150,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 @@ -1288,7 +1289,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&) { |
