Skip to content

Commit 094e2e7

Browse files
authored
fix(python): oncpu flag frong value (#123)
1 parent e500ab2 commit 094e2e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyroscope_backends/pyroscope_pyspy/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct PyspyConfig {
4141
time_limit: Option<core::time::Duration>,
4242
/// Include subprocesses
4343
detect_subprocesses: bool,
44-
/// Include idle time
44+
/// Do not include idle time
4545
oncpu: bool,
4646
/// Detect Python GIL
4747
gil_only: bool,
@@ -254,7 +254,7 @@ impl Backend for Pyspy {
254254
native: self.config.native,
255255
pid: self.config.pid,
256256
sampling_rate: self.config.sample_rate as u64,
257-
include_idle: self.config.oncpu,
257+
include_idle: !self.config.oncpu,
258258
include_thread_ids: true,
259259
subprocesses: self.config.detect_subprocesses,
260260
gil_only: self.config.gil_only,

0 commit comments

Comments
 (0)