Files
aletheia/frontend/node_modules/next/dist/lib/memory/trace.d.ts
bigtux 20a26affaa 📚 Documentação inicial do ALETHEIA
- MANUAL-PRODUTO.md: Manual do usuário final
- MANUAL-VENDAS.md: Estratégia comercial e vendas
- MANUAL-TECNICO.md: Infraestrutura e deploy
- README.md: Visão geral do projeto
2026-02-10 15:08:15 -03:00

24 lines
808 B
TypeScript

import { type Span } from '../../trace';
interface MemoryUsage {
'memory.rss': number;
'memory.heapUsed': number;
'memory.heapTotal': number;
'memory.heapMax': number;
}
/**
* Begins a timer that will record memory usage periodically to understand
* memory usage across the lifetime of the process.
*/
export declare function startPeriodicMemoryUsageTracing(): void;
export declare function stopPeriodicMemoryUsageTracing(): void;
/**
* Returns the list of all recorded memory usage snapshots from the process.
*/
export declare function getAllMemoryUsageSpans(): MemoryUsage[];
/**
* Records a snapshot of memory usage at this moment in time to the .next/trace
* file.
*/
export declare function traceMemoryUsage(description: string, parentSpan?: Span | undefined): void;
export {};