/** * `record_cpu_profile` (batch-13 Must) — record an Apple WIP CPU profile. * * Composes WIP `CPUProfiler.startTracking` + `CPUProfiler.stopTracking` + * `ScriptProfiler.startTracking(includeSamples=true)` + `ScriptProfiler.stopTracking` * for `durationMs`, plus the lightweight `Runtime.evaluate` `performance.memory` * delta as a coarse memory hint. Apple WIP does not return a single normalized * profile blob — it streams `*.trackingUpdate` events ending with a `*.trackingComplete` * payload that carries the actual samples. * * Probe-confirmed (capability matrix v2, 2026-05-17): * - CPUProfiler.startTracking / stopTracking ✅ * - ScriptProfiler.startTracking({includeSamples:true}) / stopTracking ✅ * * The output summarizes hottest call sites by sample count + samples/total * ratio. We don't ship a full v8-style flamegraph yet (Apple's sample format * is union-typed); batch-14 will compose with `analyze_performance`. */ import { z } from 'zod'; export declare const recordCpuProfileTool: { name: string; description: string; inputSchema: { durationMs: z.ZodOptional; topN: z.ZodOptional; includeAnonymous: z.ZodOptional; }; handler: ({ durationMs, topN, includeAnonymous, }: { durationMs?: number; topN?: number; includeAnonymous?: boolean; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; };