Skip to content

Commit 08bc919

Browse files
committed
Remove all macOs references.
MacOs does not report the current CPU id, so the trace information will be imcomplete.
1 parent 7646d53 commit 08bc919

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
- {os: ubuntu-24.04, cc: "gcc", cxx: "g++"}
2323
- {os: ubuntu-24.04, cc: "clang", cxx: "clang++"}
2424
- {os: windows-latest, cc: "cl", cxx: "cl"}
25-
- {os: macos-latest, cc: "clang", cxx: "clang++"}
2625

2726
steps:
2827
- uses: actions/checkout@v6

Profiler.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ namespace {
7373
#else // defined(WIN32)
7474

7575
#include <unistd.h>
76-
#ifdef __linux__
7776
#include <linux/perf_event.h>
7877
#include <sys/syscall.h>
79-
#endif
8078

8179
#ifdef _PSTL_PAR_BACKEND_TBB // This macro is defined in gcc libraries
8280
#include <oneapi/tbb/global_control.h>

tests/tests_profiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ DEFINE_TEST(test_perf_unknown_counter) {
254254
bool caught = false;
255255
try {
256256
INSTRUMENT_PERF("this-counter-does-not-exist");
257-
#ifndef __linux__
257+
#ifdef _WIN32
258258
throw profiler::profilerError("INSTRUMENT_PERF: unsupported counter 'this-counter-does-not-exist'");
259259
#endif
260260
} catch (const profiler::profilerError &) {

0 commit comments

Comments
 (0)