py-spy is a sampling profiler for Python programs. It lets you visualize what
your Python program is spending time on without restarting the program or
modifying the code in any way.
py-spy is extremely low overhead: it is written in Rust for speed and doesn't
run in the same process as the profiled Python program.
This means py-spy is safe to use against production Python code.
devel/py-spy: fix build on ARM / POWER
error[E0308]: mismatched types
-->
/wrkdirs/usr/ports/devel/py-spy/work/py_spy-0.4.1/cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs:188:52
|
188 | let result = unsafe { ptrace(PT_VM_ENTRY, pid, &vm_entry as *const _
as *mut i8, 0) };
| ------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*mut u8`
found raw pointer `*mut i8`
note: function defined here
-->
/wrkdirs/usr/ports/devel/py-spy/work/py_spy-0.4.1/cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs:150:8
|
150 | fn ptrace(request: c_int, pid: Pid, vm_entry: caddr_t, data: c_int) ->
c_int;
| ^^^^^^ --------
For more information about this error, try `rustc --explain E0308`.
error: could not compile `proc-maps` (lib) due to 1 previous error