osyoyu / pf2

A sampling-based profiler for Ruby
https://rubygems.org/gems/pf2
MIT License
49 stars 3 forks source link

Compile SignalCollector only on Linux (macOS support) #5

Closed osyoyu closed 10 months ago

osyoyu commented 10 months ago

SignalCollector relies on Linux-only features such as SIGEV_THREAD_ID, and will not compile outside of Linux. This patch limits compilation of SignalCollector only to Linux, allowing Pf2 usage on macOS and other *NIX environments.