Skip to content

Commit 789eb57

Browse files
1 parent 8ec937c commit 789eb57

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

‎reference/cli/index.html‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,20 @@ <h2 id="core-index-lifecycle">Core Index &amp; Lifecycle</h2>
804804
</tr>
805805
</tbody>
806806
</table>
807+
<h4 id="index-summary">Index summary</h4>
808+
<p>A full index (<code>cgc index</code>, <code>cgc update</code>, <code>cgc add-package</code>) ends with the <strong>CGC Index Execution
809+
Summary</strong> (files, function / class nodes, CALLS edges, <strong>Index seconds (total)</strong>) followed by an
810+
<strong>Index phase timings</strong> table: one row per phase that ran, in pipeline order, with its seconds and
811+
share of the total — <code>discover</code>, <code>pre_scan</code>, <code>parse</code> (concurrent wall time), <code>write_nodes</code>,
812+
<code>write_imports</code>, <code>inheritance</code>, <code>type_links</code>, <code>decorated_by</code>, <code>calls_resolve</code>, <code>calls_write</code>,
813+
<code>framework_links</code> and the opt-in resolution passes when enabled (<code>embeddings</code>,
814+
<code>inherit_reresolve</code>); a SCIP run reports <code>scip_index</code>, <code>supplement</code> and <code>scip_calls</code>
815+
instead of <code>parse</code>. Phases are exclusive: <code>write_imports</code> is not part of <code>write_nodes</code>, and the rows
816+
never add up to more than the total (the remainder is untimed bookkeeping between phases).</p>
817+
<p>The former "Serialization seconds" row is gone: it measured everything after parsing (writes,
818+
inheritance, CALLS, framework passes), not serialization. The summary dict keeps that
819+
window as <code>post_parse_seconds</code>; <code>serialization_seconds</code> is a deprecated alias of it, to be removed
820+
in a later release.</p>
807821
<hr />
808822
<h2 id="search-find">Search (<code>find</code>)</h2>
809823
<div class="highlight"><pre><span></span><code>cgc<span class="w"> </span>find<span class="w"> </span>&lt;subcommand&gt;<span class="w"> </span><span class="o">[</span>args<span class="o">]</span><span class="w"> </span><span class="o">[</span>options<span class="o">]</span>

‎reference/mcp-catalog/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ <h3 id="complete-input-schema">Complete input schema</h3>
776776
<span class="p">}</span>
777777
</code></pre></div>
778778
<h2 id="check_job_status">check_job_status</h2>
779-
<p>Check the status and progress of a background job.</p>
779+
<p>Check the status and progress of a background job. A completed index job carries its summary in job.result.index_summary: file / node / CALLS counts and per-phase timings (phase_seconds, total_seconds).</p>
780780
<table>
781781
<thead>
782782
<tr>
@@ -813,7 +813,7 @@ <h3 id="complete-input-schema_1">Complete input schema</h3>
813813
<span class="p">}</span>
814814
</code></pre></div>
815815
<h2 id="list_jobs">list_jobs</h2>
816-
<p>List all background jobs and their current status.</p>
816+
<p>List all background jobs and their current status. A row's <code>result</code> only names what check_job_status returns for that job (e.g. an index job's index_summary).</p>
817817
<table>
818818
<thead>
819819
<tr>

‎reference/mcp/index.html‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,10 @@ <h2 id="index-wait-query-watch">Index, wait, query, watch</h2>
735735
<li>Call <code>add_code_to_graph</code> with <code>repo_path</code>. A job ID means accepted work,
736736
not completed indexing.</li>
737737
<li>Poll <code>check_job_status</code> with that ID until completed or failed. Inspect
738-
<code>errors</code>, <code>error_type</code> and <code>traceback</code> on failure. Jobs are held in memory;
739-
they are not durable across server restarts.</li>
738+
<code>errors</code>, <code>error_type</code> and <code>traceback</code> on failure; a completed full index
739+
carries its summary (counts and per-phase timings, <code>phase_seconds</code>) in
740+
<code>job.result.index_summary</code>. Jobs are held in memory; they are not durable
741+
across server restarts.</li>
740742
<li>Call <code>find_code</code>, then <code>analyze_code_relationships</code>, with an explicit
741743
<code>repo_path</code> when multiple repositories have matching symbol names.</li>
742744
<li>Call <code>watch_directory</code> with <code>repo_path</code> for ongoing updates. Allow for the

‎search/search_index.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)