fix redef
This commit is contained in:
@ -1,29 +0,0 @@
|
||||
/**
|
||||
* @file : {{FILE}}
|
||||
* @created : {{TIMESTAMP}}
|
||||
* @license : {{LICENSE}}
|
||||
**/
|
||||
|
||||
#ifndef{{MACRO_GUARD } }
|
||||
#define{{MACRO_GUARD } }
|
||||
|
||||
namespace {
|
||||
{
|
||||
CURSOR
|
||||
}
|
||||
}// namespace
|
||||
|
||||
{
|
||||
|
||||
class {
|
||||
{
|
||||
CAMEL_CLASS
|
||||
}
|
||||
} {
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
}// namespace
|
||||
|
||||
#endif// {{MACRO_GUARD}}
|
@ -1,5 +1,6 @@
|
||||
#include "sled/profiling/profiling.h"
|
||||
#include <uprofile.h>
|
||||
|
||||
// #include <uprofile.h>
|
||||
|
||||
namespace sled {
|
||||
Profiling *
|
||||
@ -12,7 +13,7 @@ Profiling::Instance()
|
||||
bool
|
||||
Profiling::Start(const std::string &file)
|
||||
{
|
||||
uprofile::start(file.c_str());
|
||||
// uprofile::start(file.c_str());
|
||||
started_ = true;
|
||||
return true;
|
||||
}
|
||||
@ -20,53 +21,53 @@ Profiling::Start(const std::string &file)
|
||||
void
|
||||
Profiling::Stop()
|
||||
{
|
||||
uprofile::stop();
|
||||
// uprofile::stop();
|
||||
}
|
||||
|
||||
void
|
||||
Profiling::TimeBegin(const std::string &name)
|
||||
{
|
||||
if (!started_) return;
|
||||
uprofile::timeBegin(name);
|
||||
// uprofile::timeBegin(name);
|
||||
}
|
||||
|
||||
void
|
||||
Profiling::TimeEnd(const std::string &name)
|
||||
{
|
||||
if (!started_) return;
|
||||
uprofile::timeEnd(name);
|
||||
// uprofile::timeEnd(name);
|
||||
}
|
||||
|
||||
void
|
||||
Profiling::StartProcessMemoryMonitoring(int period_ms)
|
||||
{
|
||||
if (!started_) return;
|
||||
uprofile::startProcessMemoryMonitoring(period_ms);
|
||||
// uprofile::startProcessMemoryMonitoring(period_ms);
|
||||
}
|
||||
|
||||
void
|
||||
Profiling::StartSystemMemoryMonitoring(int period_ms)
|
||||
{
|
||||
if (!started_) return;
|
||||
uprofile::startSystemMemoryMonitoring(period_ms);
|
||||
// uprofile::startSystemMemoryMonitoring(period_ms);
|
||||
}
|
||||
|
||||
void
|
||||
Profiling::StartCPUUsageMonitoring(int period_ms)
|
||||
{
|
||||
if (!started_) return;
|
||||
uprofile::startCPUUsageMonitoring(period_ms);
|
||||
// uprofile::startCPUUsageMonitoring(period_ms);
|
||||
}
|
||||
|
||||
void
|
||||
Profiling::GetSystemMemory(int &total_mem, int &available_mem, int &free_mem)
|
||||
{
|
||||
uprofile::getSystemMemory(total_mem, available_mem, free_mem);
|
||||
// uprofile::getSystemMemory(total_mem, available_mem, free_mem);
|
||||
}
|
||||
|
||||
void
|
||||
Profiling::GetProcessMemory(int &rss, int &shared)
|
||||
{
|
||||
uprofile::getProcessMemory(rss, shared);
|
||||
// uprofile::getProcessMemory(rss, shared);
|
||||
}
|
||||
}// namespace sled
|
||||
|
Reference in New Issue
Block a user