heartbeat-monitor/node_modules/next/dist/lib/memory/trace.d.ts
Matt Bruce bed1169443 Initial commit: Heartbeat Monitor dashboard
- Full-featured monitoring dashboard for local web apps
- Real-time status tracking with uptime percentages
- Visual sparklines for status history
- Add/Edit/Delete apps dynamically
- Categories and color coding
- Auto-refresh every 30 seconds
- API endpoints for apps and status management
2026-02-18 11:16:01 -06: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 {};