Skip to content

Instantly share code, notes, and snippets.

class S
{
public:
static S& GetInstance()
{
static S instance;
return instance;
}
private:
S() {}
class Profiler
{
Profiler::Profiler()
public :
void Update()
{
//m_debugger.Update();
sig_Update.emit()
sig_Log.emit("Profiler updating")
}
class Profiler
{
Profiler::Profiler(Logger& logger, Debugger& debugger)
: m_logger(logger)
, m_debugger(debugger)
public :
void Update()
{
m_debugger.Update();
logger.Log("Profiler updating")
class Profiler
{
Profiler& GetInstance() { return s_instance; }
public :
void Update()
{
Debugger::GetInstance().Update();
Logger::GetInstance().Log("Profiler updating")
}
};