rust-lang / rust-lang/datafrog
Add simple profiling statistics
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 899
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
It could be interesting to have simple statistics, for example behind a feature flag, of the number of tuples and the time it took to merge and create them, for Relations and/of Variables.
There are commented out Drop impls in the code, e.g here as an example of the way to add the final tuple counts statistic.
Similarly, a Duration could be added to the merged relations, updating it in the operator functions, to display the time it took to create those tuples, as described a bit more here by Frank.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Relation and Variable handling in src/lib.rs, including the commented-out Drop implementations around lines 389-397, then trace the operator functions that create merged relations. Define how a feature flag should expose tuple counts and Duration values without affecting normal use. Done means the profiling statistics report final tuple counts and merge or creation times for the requested relations and variables.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100