/** * `record_memory_tracking` (batch-14, soft-promoted from "推到 batch-14 nice") * * Pairs with `record_cpu_profile` to form the "性能三件套路线图" foundation * (cross-review v2.0.1 codex). Different signal: * - `record_cpu_profile` → who (which JS function) is hot * - `record_memory_tracking` → what (jsHeap / images / layers) is using memory * - `record_timeline` → when (frame events) on the wall clock * * WIP: `Memory.startTracking` + `Memory.stopTracking` + `Memory.trackingUpdate` * events (probe-confirmed 2026-05-17). * * Apple's `Memory.trackingUpdate` payload contains a `categories` array * carrying per-bucket sizes (JavaScript / Images / Layers / Page / Other). * We sample the latest per category, then return delta vs initial sample. */ import { z } from 'zod'; export declare const recordMemoryTrackingTool: { name: string; description: string; inputSchema: { durationMs: z.ZodOptional; }; handler: ({ durationMs }: { durationMs?: number; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; };