benfred / py-spy

Sampling profiler for Python programs
MIT License
12.37k stars 405 forks source link

OpenBSD support #275

Open hboetes opened 4 years ago

hboetes commented 4 years ago

Hello!

I just tried cargo install py-spy and ran into

error[E0432]: unresolved import `platform`
  --> /home/han/.cargo/registry/src/github.com-1ecc6299db9ec823/benfred-read-process-memory-0.2.0/src/lib.rs:39:9
   |
39 | pub use platform::Pid;
   |         ^^^^^^^^ maybe a missing crate `platform`?

error[E0432]: unresolved import `platform`
  --> /home/han/.cargo/registry/src/github.com-1ecc6299db9ec823/benfred-read-process-memory-0.2.0/src/lib.rs:61:9
   |
61 | pub use platform::ProcessHandle;
   |         ^^^^^^^^ maybe a missing crate `platform`?

thanks for looking into this.

benfred commented 4 years ago

Py-spy doesn't work on OpenBSD yet =( We only have support for FreeBSD/Linux/MacOS and Windows right now. We will need to add some OS specific code for reading information from the target process - I believe this issue https://github.com/benfred/py-spy/issues/112 lists out the steps needed pretty well.

hboetes commented 4 years ago

ok thanks, poke me if you need testing.