janestreet / janestreet/magic-trace
Support `magic-trace attach -p ... [cmd]` syntax
Open
enhancement
good first issue
- Dominant language
- OCaml
- Stars
- 6.3k
- Forks
- 209
- PR merge metrics
- No merged PRs in 30d
Description
This would allow doing e.g.
```
$ magic-trace attach -p $(pidof foo) -trigger bar sleep 5
```
like `perf`.
Contributor guide
Research direction
Start at the command-line entry point for `magic-trace attach` and inspect how its options are parsed. Compare the requested `-p ... -trigger ... [cmd]` example with the existing attach behavior; done means an optional command after the attach options is accepted and executed while tracing the selected process.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100