@@ -535,9 +535,9 @@ void send_viewer_stats(bool include_preferences)
535
535
536
536
LLSD capture_viewer_stats (bool include_preferences)
537
537
{
538
- LLViewerStats& vstats{ LLViewerStats& vs = LLViewerStats::instance () } ;
539
- vstats;
540
- vs .getRecording ().pause ();
538
+ LLViewerStats& vstats = LLViewerStats::instance ();
539
+
540
+ vstats .getRecording ().pause ();
541
541
LL::scope_exit cleanup ([&vstats]{ vstats.getRecording ().resume (); });
542
542
543
543
LLSD body;
@@ -563,13 +563,13 @@ LLSD capture_viewer_stats(bool include_preferences)
563
563
564
564
agent[" start_time" ] = S32 (ltime - S32 (run_time));
565
565
566
- agent[" fg_frame_stats" ] = vs .mForegroundFrameStats .asLLSD ();
567
- agent[" fg_frame_stats" ][" ofr" ] = ofr (vs .mForegroundFrameStats );
568
- agent[" fg_frame_stats" ][" fps" ] = fps (vs .mForegroundFrameStats );
566
+ agent[" fg_frame_stats" ] = vstats .mForegroundFrameStats .asLLSD ();
567
+ agent[" fg_frame_stats" ][" ofr" ] = ofr (vstats .mForegroundFrameStats );
568
+ agent[" fg_frame_stats" ][" fps" ] = fps (vstats .mForegroundFrameStats );
569
569
570
- agent[" bg_frame_stats" ] = vs .mBackgroundFrameStats .asLLSD ();
571
- agent[" bg_frame_stats" ][" ofr" ] = ofr (vs .mBackgroundFrameStats );
572
- agent[" bg_frame_stats" ][" fps" ] = fps (vs .mBackgroundFrameStats );
570
+ agent[" bg_frame_stats" ] = vstats .mBackgroundFrameStats .asLLSD ();
571
+ agent[" bg_frame_stats" ][" ofr" ] = ofr (vstats .mBackgroundFrameStats );
572
+ agent[" bg_frame_stats" ][" fps" ] = fps (vstats .mBackgroundFrameStats );
573
573
574
574
// report time the viewer has spent in the foreground
575
575
agent[" foreground_time" ] = gForegroundTime .getElapsedTimeF32 ();
0 commit comments