feat: rust profiling with flamegraph, tokio console and custom tracing #910
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ran
RUST_LOG=info cargo run --release -p standalone --features neo4jand got the following results for the most expensive part in codeadd_callsfunction calls section for ingesting
stakwork/gitseeand got this2025-12-25T17:18:39.332500Z INFO finalize_graph{files=64}: [perf][call_finder] Analyzed 1083 function calls in 0ms 2025-12-25T17:18:39.332510Z INFO finalize_graph{files=64}: [perf][call_finder] • only_one: 305 hits (0ms, 0%) 2025-12-25T17:18:39.332552Z INFO finalize_graph{files=64}: [perf][call_finder] • same_file: 4 hits (0ms, 0%) 2025-12-25T17:18:39.332560Z INFO finalize_graph{files=64}: [perf][call_finder] • not_found: 774 hits (0ms, 0%) 2025-12-25T17:18:39.332566Z INFO finalize_graph{files=64}: [perf][imports] Parsed 1083 files (28 unique) in 3827ms 2025-12-25T17:18:39.332587Z INFO finalize_graph{files=64}: [perf][imports] • index.ts: 158× calls, 626ms (16%) 2025-12-25T17:18:39.332682Z INFO finalize_graph{files=64}: [perf][imports] • handler.ts: 179× calls, 619ms (16%) 2025-12-25T17:18:39.332711Z INFO finalize_graph{files=64}: [perf][imports] • concepts.ts: 54× calls, 418ms (10%) 2025-12-25T17:18:39.332754Z INFO finalize_graph{files=64}: [perf][imports] • repo-cloner.ts: 63× calls, 237ms (6%) 2025-12-25T17:18:39.332766Z INFO finalize_graph{files=64}: [perf][imports] • FileStore.ts: 56× calls, 198ms (5%)