Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: add some performance diagnostics #18116

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Nov 26, 2024

This outputs some duration counts for various parts of the extraction process in the database in the form of a per-file breakdown in the QL DB and a summary as telemetry diagnostics.

The QL DB entities do not use codegen because we currently can't include "extern" stuff (like File in this case) into the generation machinery. This might be improved in the future.

This outputs some duration counts for various parts of the extraction
process in the database in the form of telemetry diagnostics.

The diagnostics format was preferred to putting things in the relational
database as that will scale better to code scanning and is more flexible
as for the data we can put into it without passing through the dbscheme.
Also, although it's not the case yet, it will be possible to output
diagnostics even if creation of the database fails.
@redsun82 redsun82 requested a review from a team as a code owner November 26, 2024 15:37
@github-actions github-actions bot added the Rust Pull requests that update Rust code label Nov 26, 2024
Comment on lines +9 to +11
/**
* The string representation of this extractor step.
*/

Check warning

Code scanning / CodeQL

Predicate QLDoc style. Warning

The QLDoc for a predicate with a result should start with 'Gets'.
Comment on lines +19 to +21
/**
* The action this extractor step carried out.
*/

Check warning

Code scanning / CodeQL

Predicate QLDoc style. Warning

The QLDoc for a predicate with a result should start with 'Gets'.
Comment on lines +24 to +26
/**
* The file the extractor step was carried out on.
*/

Check warning

Code scanning / CodeQL

Predicate QLDoc style. Warning

The QLDoc for a predicate with a result should start with 'Gets'.
Comment on lines +29 to +31
/**
* The duration of the extractor step in milliseconds.
*/

Check warning

Code scanning / CodeQL

Predicate QLDoc style. Warning

The QLDoc for a predicate with a result should start with 'Gets'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant