Skip to content

Commit 0b83280

Browse files
committed
refactor(examples): update examples
1 parent af5e4d1 commit 0b83280

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/internal/pyspy-connect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ fn main() -> Result<()> {
2020
.sample_rate(100)
2121
.lock_process(true)
2222
.time_limit(None)
23-
.with_subprocesses(true)
24-
.include_idle(false)
23+
.detect_subprocesses(true)
24+
.oncpu(false)
2525
.native(false);
2626

2727
let agent = PyroscopeAgent::builder("http://localhost:4040", "pyspy.basic")

examples/internal/rbspy-connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn main() -> Result<()> {
1919
let config = RbspyConfig::new(pid)
2020
.sample_rate(100)
2121
.lock_process(true)
22-
.with_subprocesses(true);
22+
.detect_subprocesses(true);
2323

2424
let agent = PyroscopeAgent::builder("http://localhost:4040", "rbspy.basic")
2525
.tags([("Host", "Ruby")].to_vec())

0 commit comments

Comments
 (0)