31 m_ProfileTimerData(profileTimerData)
45 m_ProfileMap[ptd] = funcName;
51 for (ProfileMap::iterator it = m_ProfileMap.begin(); it != m_ProfileMap.end(); ++it)
53 const long totalTime = it->first->m_StopWatch.Time();
55 log.
Printf(
_T(
"\"%s\" used time is %ld minute(s), %ld.%03ld seconds; call times is %lu."),
58 (totalTime / 1000) % 60,
60 static_cast<unsigned long>(it->first->m_CallTimes));
61 #ifndef CC_PARSER_TEST static size_t Registry(ProfileTimerData *ptd, const wxString &funcName)
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
ProfileTimerHelper(ProfileTimerData &profileTimerData)
ProfileTimerData & m_ProfileTimerData
std::map< ProfileTimerData *, wxString > ProfileMap
LogManager * GetLogManager() const
void Start(long milliseconds=0)
void DebugLog(const wxString &msg, Logger::level lv=Logger::info)
int Printf(const wxString &pszFormat,...)
static ProfileMap m_ProfileMap