fostfox / lua-cpp-s101-integration

5 stars 0 forks source link

Profiler Fix Problem Init #29

Closed fostfox closed 5 years ago

fostfox commented 5 years ago

Need initialization

https://github.com/ArnMips/lua-cpp-s101-integration/blob/352368c76d5dd11e559f8ac4e4b5f404bcd86219/profiler.h#L67

fostfox commented 5 years ago

Maybe Add to profiler.h

QMap<QString, FunctionTimeInfo> Profiler::m_funcTimeInfoMap; 
fostfox commented 5 years ago

Add default constructor & in https://github.com/ArnMips/lua-cpp-s101-integration/blob/352368c76d5dd11e559f8ac4e4b5f404bcd86219/profiler.h#L52 Like this

FunctionTimeInfo()
  : m_name("undef_function_name")

void setName(const std::string &name);
fostfox commented 5 years ago

Fixed