@@ -277,7 +277,7 @@ For example, we can only trace calls in our current process, and not worry about
277
277
IO .puts (" I am: #{ inspect (self ())} " )
278
278
279
279
# Configure the tracing engine to only monitor our `self()`
280
- Matcha .Trace .module (Integer , limit: 1_000 , pid: self ())
280
+ Matcha .Trace .module (Integer , limit: 1_000 , pids: [ self ()] )
281
281
282
282
do_integer_things = fn ->
283
283
IO .puts (" The process now executing some Integer calls is: #{ inspect (self ())} " )
@@ -307,7 +307,7 @@ For example, we might want to only trace `:existing` processes, and ensure that
307
307
IO .puts (" I am: #{ inspect (self ())} " )
308
308
309
309
# Configure the tracing engine to only monitor `:existing` processes
310
- Matcha .Trace .module (Integer , limit: 1_000 , pid : :existing )
310
+ Matcha .Trace .module (Integer , limit: 1_000 , pids : :existing )
311
311
312
312
do_integer_things = fn ->
313
313
IO .puts (" The process now executing some Integer calls is: #{ inspect (self ())} " )
@@ -328,7 +328,7 @@ Alteratively, we could only trace `:new` processes for the opposite effect: only
328
328
IO .puts (" I am: #{ inspect (self ())} " )
329
329
330
330
# Configure the tracing engine to only monitor `:new` processes
331
- Matcha .Trace .module (Integer , limit: 1_000 , pid : :new )
331
+ Matcha .Trace .module (Integer , limit: 1_000 , pids : :new )
332
332
333
333
do_integer_things = fn ->
334
334
IO .puts (" The process now executing some Integer calls is: #{ inspect (self ())} " )
@@ -343,4 +343,4 @@ do_integer_things.()
343
343
IO .puts (" A newly spawned process is: #{ inspect (spawn (do_integer_things))} " )
344
344
```
345
345
346
- You can also specify the process group ` pid : :all` ; however, this is the default behaviour so is not very useful in practice.
346
+ You can also specify the process group ` pids : :all` ; however, this is the default behaviour so is not very useful in practice.
0 commit comments