janestreet / janestreet/magic-trace

Support `magic-trace attach -p ... [cmd]` syntax

Open
#230 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.