/** * `analyze_performance` (batch-14 composite tool, cross-review v2.0.1) * * Runs the "性能三件套" concurrently for a single duration window and emits * a cross-correlated report: * * - `record_timeline` → wall-clock event types + hottest entries * - `record_cpu_profile` → hot JS functions + heap delta * - `record_memory_tracking` → category memory deltas * * Apple WIP per-target message processing is serialized, but the three * tracking domains operate independently — `Timeline.start` / `CPUProfiler.startTracking` * / `Memory.startTracking` can coexist on one ws session and their event * streams are tagged by domain so the buffers don't collide. * * The composite output is one markdown document with three sections + a * cross-correlation hint footer. */ import { z } from 'zod'; export declare const analyzePerformanceTool: { name: string; description: string; inputSchema: { durationMs: z.ZodOptional; timelineTopN: z.ZodOptional; cpuTopN: z.ZodOptional; interactionHint: z.ZodOptional; }; handler: ({ durationMs, timelineTopN, cpuTopN, interactionHint, }: { durationMs?: number; timelineTopN?: number; cpuTopN?: number; interactionHint?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; };