diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 261a9a9e..ee9e0fce 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -27,6 +27,11 @@ # include #endif +#ifdef __APPLE__ +# include +# include +#endif + #include #include #include @@ -219,6 +224,10 @@ static const char* GetProcessName() # endif #elif defined _GNU_SOURCE || defined __CYGWIN__ processName = program_invocation_short_name; +#elif defined __APPLE__ + static char buf[1024]; + proc_name( getpid(), buf, 1024 ); + processName = buf; #endif return processName; }