diff --git a/include/profiler/profiler.h b/include/profiler/profiler.h index f6aa7c3..11522c8 100644 --- a/include/profiler/profiler.h +++ b/include/profiler/profiler.h @@ -212,7 +212,6 @@ breakdown, but if you care about that then you change set event tracing priority */ # define EASY_SET_LOW_PRIORITY_EVENT_TRACING(isLowPriority) ::profiler::setLowPriorityEventTracing(isLowPriority); -# ifndef _WIN32 /** Macro for setting temporary log-file path for Unix event tracing system. \note Default value is "/tmp/cs_profiling_info.log". @@ -226,9 +225,6 @@ breakdown, but if you care about that then you change set event tracing priority \ingroup profiler */ # define EASY_EVENT_TRACING_LOG ::profiler::getContextSwitchLogFilename(); -# endif - - // EasyProfiler settings: @@ -515,7 +511,6 @@ namespace profiler { */ PROFILER_API void setLowPriorityEventTracing(bool _isLowPriority); -#ifndef _WIN32 /** Set temporary log-file path for Unix event tracing system. \note Default value is "/tmp/cs_profiling_info.log". @@ -529,7 +524,6 @@ namespace profiler { \ingroup profiler */ PROFILER_API const char* getContextSwitchLogFilename(); -#endif PROFILER_API void startListenSignalToCapture(); PROFILER_API void stopListenSignalToCapture(); diff --git a/src/profile_manager.h b/src/profile_manager.h index 6fb4837..a7ba132 100644 --- a/src/profile_manager.h +++ b/src/profile_manager.h @@ -345,9 +345,7 @@ class ProfileManager std::atomic_bool m_isEnabled; std::atomic_bool m_isEventTracingEnabled; -#ifndef _WIN32 std::string m_csInfoFilename = "/tmp/cs_profiling_info.log"; -#endif uint32_t dumpBlocksToStream(profiler::OStream& _outputStream); void setBlockStatus(profiler::block_id_t _id, profiler::EasyBlockStatus _status); @@ -381,7 +379,6 @@ public: uint32_t dumpBlocksToFile(const char* filename); const char* registerThread(const char* name, profiler::ThreadGuard& threadGuard); -#ifndef _WIN32 void setContextSwitchLogFilename(const char* name) { m_csInfoFilename = name; @@ -391,7 +388,6 @@ public: { return m_csInfoFilename.c_str(); } -#endif void beginContextSwitch(profiler::thread_id_t _thread_id, profiler::timestamp_t _time, profiler::thread_id_t _target_thread_id, const char* _target_process, bool _lockSpin = true); void storeContextSwitch(profiler::thread_id_t _thread_id, profiler::timestamp_t _time, profiler::thread_id_t _target_thread_id, bool _lockSpin = true);