Download frontend/node_modules/next/dist/lib/memory/trace.d.ts from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 808 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/lib/memory/trace.d.ts
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/lib/memory/trace.d.ts
-
curl -L -o trace.d.ts https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/lib/memory/trace.d.ts
808 Bytes
| 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 {}; | |