koute / not-perf

A sampling CPU profiler for Linux
Apache License 2.0
868 stars 40 forks source link

Windows support #12

Open malaskow opened 4 years ago

malaskow commented 4 years ago

hi, any chance for adding windows support / removing unix dependencies?

olorin37 commented 4 years ago

The idea is to allow running the trace-events processing on windows. Collecting data can still work only on linux environment. (but it would require split binary to parts one for collecting data other to process collected data).

koute commented 4 years ago

Adding full support for Windows is, unfortunately, not really feasible. It is certainly possible, but it would require huge changes as basically everything on Windows is different.

However, just getting the analysis part without the profiling part to run on Windows should be pretty easy. It would mostly just be an issue of adding relevant #[cfg(...)] attributes so that Linux-only parts won't be compiled on Windows.