removing all singletons

This commit is contained in:
2024-09-20 17:29:42 +02:00
parent 8348f9ce7a
commit 1e2705ef06
10 changed files with 59 additions and 49 deletions

View File

@@ -4,6 +4,8 @@
namespace mlx
{
Profiler* Profiler::s_instance = nullptr;
void Profiler::BeginRuntimeSession()
{
std::lock_guard lock(m_mutex);
@@ -63,5 +65,6 @@ namespace mlx
if(!m_runtime_session_began)
return;
EndRuntimeSession();
s_instance = nullptr;
}
}