Skip to content

Commit

Permalink
chore: Add a tool to analyze the impact of changes to the typesystem (#…
Browse files Browse the repository at this point in the history
…4938)

* chore: Add a tool to analyze the impact of changes to the typesystem

... and standard library. Extracted from #4776.
Currently this supports consuming either an sqlite database or a csv file which are the two
sources of scripts I am aware of at the moment.

```bash
cargo run --release --bin analyze_query_log --all-features -- "../../../Downloads/2022-06-28_18 30_influxdb_data.csv" --new-features unusedSymbolWarnings
```

* chore: make generate
  • Loading branch information
Markus Westerlind authored Jul 4, 2022
1 parent 9aa7374 commit 9f8842a
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 2 deletions.
74 changes: 74 additions & 0 deletions libflux/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions libflux/flux-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ edition = "2021"
name = "fluxcore"
crate-type = ["rlib"]

[[bin]]
name = "analyze_query_log"
test = false
bench = false
required-features = ["crossbeam-channel", "csv", "rayon", "rusqlite", "pretty_assertions"]

[[bin]]
name = "fluxdoc"
test = false
Expand All @@ -29,6 +35,7 @@ doc = ["csv", "once_cell", "pad", "pulldown-cmark", "rayon", "tempfile"]
anyhow = "1.0.56"
chrono = { version = "0.4", features = ["serde"] }
codespan-reporting = "0.11"
crossbeam-channel = { version = "0.5", optional = true }
csv = { version = "1.1", optional = true }
derivative = "2.1.1"
derive_more = { version = "0.99.17", default-features = false, features = [
Expand Down Expand Up @@ -59,6 +66,9 @@ thiserror = "1"
tempfile = { version = "3.3.0", optional = true }
walkdir = "2.2.9"

rusqlite = { version = "0.26", optional = true }
pretty_assertions = { version = "1", optional = true }

[dev-dependencies]
colored = "2.0"
criterion = "0.3.3"
Expand Down
Loading

0 comments on commit 9f8842a

Please sign in to comment.