0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

A couple of fixes for pull-request

This commit is contained in:
Victor Zarubkin 2017-03-03 00:29:45 +03:00
parent a9dea6faa6
commit 95ad72c9a7
2 changed files with 4 additions and 5 deletions

View File

@ -95,7 +95,6 @@ namespace profiler {
::profiler::EventTracingEnableStatus enable(bool _force = false);
void disable();
void setLowPriority(bool _value);
bool getLowPriority();
static void setProcessPrivileges();
private:

View File

@ -249,7 +249,7 @@ extern "C" {
PROFILER_API bool isLowPriorityEventTracing()
{
return EasyEventTracer::instance().isLowPriorityEventTracing();
return EasyEventTracer::instance().isLowPriority();
}
# else
PROFILER_API void setLowPriorityEventTracing(bool) { }
@ -296,9 +296,9 @@ extern "C" {
PROFILER_API bool isLowPriorityEventTracing(bool) { return false; }
PROFILER_API void setContextSwitchLogFilename(const char*) { }
PROFILER_API const char* getContextSwitchLogFilename() { return ""; }
PROFILER_API void startListen(uint16_t) { }
PROFILER_API void stopListen() { }
PROFILER_API bool isListening() { }
PROFILER_API void startListen(uint16_t) { }
PROFILER_API void stopListen() { }
PROFILER_API bool isListening() { return false; }
#endif
PROFILER_API uint8_t versionMajor()