File tree Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -1284,6 +1284,7 @@ bool LLAppViewer::init()
1284
1284
// LLSimpleton creations
1285
1285
LLEnvironment::createInstance ();
1286
1286
LLWorld::createInstance ();
1287
+ LLViewerStatsRecorder::createInstance ();
1287
1288
LLSelectMgr::createInstance ();
1288
1289
LLViewerCamera::createInstance ();
1289
1290
LL::GLTFSceneManager::createInstance ();
@@ -2166,6 +2167,7 @@ bool LLAppViewer::cleanup()
2166
2167
LL::GLTFSceneManager::deleteSingleton ();
2167
2168
LLEnvironment::deleteSingleton ();
2168
2169
LLSelectMgr::deleteSingleton ();
2170
+ LLViewerStatsRecorder::deleteSingleton ();
2169
2171
LLViewerEventRecorder::deleteSingleton ();
2170
2172
LLWorld::deleteSingleton ();
2171
2173
LLVoiceClient::deleteSingleton ();
Original file line number Diff line number Diff line change @@ -1285,7 +1285,6 @@ bool idle_startup()
1285
1285
//
1286
1286
// Initialize classes w/graphics stuff.
1287
1287
//
1288
- LLViewerStatsRecorder::instance (); // Since textures work in threads
1289
1288
LLSurface::initClasses ();
1290
1289
display_startup ();
1291
1290
Original file line number Diff line number Diff line change 27
27
#include " llviewerprecompiledheaders.h"
28
28
#include " llviewerstatsrecorder.h"
29
29
30
-
31
30
#include " llcontrol.h"
32
31
#include " llfile.h"
32
+ #include " llviewercontrol.h"
33
33
#include " llviewerregion.h"
34
34
#include " llviewerobject.h"
35
35
#include " llworld.h"
36
36
37
- extern LLControlGroup gSavedSettings ;
38
-
39
- LLViewerStatsRecorder* LLViewerStatsRecorder::sInstance = NULL ;
40
37
LLViewerStatsRecorder::LLViewerStatsRecorder () :
41
38
mStatsFile(NULL ),
42
39
mTimer(),
@@ -48,11 +45,6 @@ LLViewerStatsRecorder::LLViewerStatsRecorder() :
48
45
mMaxDuration(300 .f),
49
46
mSkipSaveIfZeros(false )
50
47
{
51
- if (NULL != sInstance )
52
- {
53
- LL_ERRS () << " Attempted to create multiple instances of LLViewerStatsRecorder!" << LL_ENDL;
54
- }
55
- sInstance = this ;
56
48
clearStats ();
57
49
}
58
50
Original file line number Diff line number Diff line change 38
38
class LLMutex ;
39
39
class LLViewerObject ;
40
40
41
- class LLViewerStatsRecorder : public LLSingleton <LLViewerStatsRecorder>
41
+ class LLViewerStatsRecorder : public LLSimpleton <LLViewerStatsRecorder>
42
42
{
43
- LLSINGLETON (LLViewerStatsRecorder);
43
+ public:
44
+ LLViewerStatsRecorder ();
44
45
LOG_CLASS (LLViewerStatsRecorder);
45
46
~LLViewerStatsRecorder ();
46
-
47
- public:
48
47
// Enable/disable stats recording. This is broken down into two
49
48
// flags so we can record stats without writing them to the log
50
49
// file. This is useful to analyzing updates for scene loading.
@@ -140,8 +139,6 @@ class LLViewerStatsRecorder : public LLSingleton<LLViewerStatsRecorder>
140
139
void closeStatsFile ();
141
140
void makeStatsFileName ();
142
141
143
- static LLViewerStatsRecorder* sInstance ;
144
-
145
142
LLFILE * mStatsFile ; // File to write data into
146
143
std::string mStatsFileName ;
147
144
You can’t perform that action at this time.
0 commit comments