raggrep 0.10.2 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,29 @@ export interface IndexOptions {
23
23
  logger?: Logger;
24
24
  /** Number of files to process in parallel (default: auto based on CPU cores) */
25
25
  concurrency?: number;
26
+ /** Show timing information for each stage */
27
+ timing?: boolean;
28
+ }
29
+ /** Timing information for performance profiling */
30
+ export interface TimingInfo {
31
+ /** Total time in milliseconds */
32
+ totalMs: number;
33
+ /** Time spent on file discovery (glob) */
34
+ fileDiscoveryMs: number;
35
+ /** Time spent on stat checks */
36
+ statCheckMs: number;
37
+ /** Time spent on indexing changed files */
38
+ indexingMs: number;
39
+ /** Time spent on cleanup operations */
40
+ cleanupMs: number;
41
+ /** Number of files discovered */
42
+ filesDiscovered: number;
43
+ /** Number of files that needed stat check */
44
+ filesStatChecked: number;
45
+ /** Number of files that needed indexing */
46
+ filesIndexed: number;
47
+ /** Whether result was from cache */
48
+ fromCache: boolean;
26
49
  }
27
50
  export interface EnsureFreshResult {
28
51
  /** Number of files indexed (new or modified) */
@@ -31,6 +54,8 @@ export interface EnsureFreshResult {
31
54
  removed: number;
32
55
  /** Number of files unchanged (used cache) */
33
56
  unchanged: number;
57
+ /** Timing information (only present if timing option was enabled) */
58
+ timing?: TimingInfo;
34
59
  }
35
60
  export interface CleanupResult {
36
61
  moduleId: string;