Skip to content

Add higher level profiling to the indexing phases with --time#695

Merged
jviotti merged 2 commits intomainfrom
better-index-logs
Mar 3, 2026
Merged

Add higher level profiling to the indexing phases with --time#695
jviotti merged 2 commits intomainfrom
better-index-logs

Conversation

@jviotti
Copy link
Member

@jviotti jviotti commented Mar 3, 2026

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti jviotti force-pushed the better-index-logs branch from 0962b36 to 6a897d7 Compare March 3, 2026 17:23
@augmentcode
Copy link

augmentcode bot commented Mar 3, 2026

🤖 Augment PR Summary

Summary: Adds coarse-grained phase profiling to the one index workflow.

Changes:

  • Introduces lightweight profiling markers around major indexing phases (startup, detect, ingest, analyse, review, etc.).
  • Emits per-phase timing summaries when `--profile` is provided.
  • Updates the benchmarking script to run indexing with profiling enabled during measurements and to reindex outside measurement windows.
Technical Notes: Profiling uses `std::chrono::steady_clock` and reports millisecond durations per phase.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="benchmark/index.sh">

<violation number="1" location="benchmark/index.sh:34">
P2: Enabling `--profile` inside the timed benchmark path skews the reported latency by including profiling overhead instead of just indexing time.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti jviotti changed the title Add higher level profiling to the indexing phases Add higher level profiling to the indexing phases with --time Mar 3, 2026
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Index (community)

Details
Benchmark suite Current: 1305de4 Previous: af2e09c Ratio
Add one schema (0 existing) 43 ms 44 ms 0.98
Add one schema (100 existing) 913 ms 986 ms 0.93
Add one schema (1000 existing) 9506 ms 9724 ms 0.98

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Index (enterprise)

Details
Benchmark suite Current: 1305de4 Previous: af2e09c Ratio
Add one schema (0 existing) 44 ms 49 ms 0.90
Add one schema (100 existing) 869 ms 1109 ms 0.78
Add one schema (1000 existing) 8679 ms 10474 ms 0.83

This comment was automatically generated by workflow using github-action-benchmark.

@jviotti jviotti merged commit e77e189 into main Mar 3, 2026
6 checks passed
@jviotti jviotti deleted the better-index-logs branch March 3, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant