ruff/crates/ruff_dev/src
konstin 361d45f2b2
Add cargo dev repeat for profiling (#5144)
## Summary

This adds a new subcommand that can be used as

```shell
cargo build --bin ruff_dev --profile=release-debug
perf record -g -F 999 target/release-debug/ruff_dev repeat --repeat 30 --exit-zero --no-cache path/to/cpython > /dev/null
flamegraph --perfdata perf.data
```

## Test Plan

This is a ruff internal script. I successfully used it to profile
cpython with the instructions above
2023-06-19 11:40:09 +02:00
..
generate_all.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
generate_cli_help.rs Rename ruff_python_semantic's Context struct to SemanticModel (#4565) 2023-05-22 02:35:03 +00:00
generate_docs.rs Update option anchors to include group name (#4711) 2023-05-29 17:26:10 -04:00
generate_json_schema.rs Pre commit without cargo and other pre-PR improvements (#5146) 2023-06-18 11:00:42 +00:00
generate_options.rs Update option anchors to include group name (#4711) 2023-05-29 17:26:10 -04:00
generate_rules_table.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
main.rs Add cargo dev repeat for profiling (#5144) 2023-06-19 11:40:09 +02:00
print_ast.rs Upgrade RustPython (#4747) 2023-05-31 08:26:35 +00:00
print_cst.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
print_tokens.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
round_trip.rs Add roundtrip support for Jupyter notebook (#5028) 2023-06-12 23:27:45 +05:30