mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
refactor Profiler startup/shutdown (#11105)
This commit is contained in:
@@ -101,7 +101,7 @@ Engine::Engine() {
|
||||
se::ScriptEngine::getInstance();
|
||||
|
||||
#if CC_USE_PROFILER
|
||||
Profiler::getInstance();
|
||||
_profiler = new Profiler();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ Engine::~Engine() {
|
||||
Root::getInstance()->destroy();
|
||||
|
||||
#if CC_USE_PROFILER
|
||||
Profiler::destroyInstance();
|
||||
delete _profiler;
|
||||
#endif
|
||||
DebugRenderer::destroyInstance();
|
||||
FreeTypeFontFace::destroyFreeType();
|
||||
|
||||
Reference in New Issue
Block a user