Create stream processing statistics tracker
Provides real-time statistics about stream processing performance and resource usage.
Stream to process
Stream chunks with statistics
const stream = await createStream('/path/to/large-file.fastq');for await (const chunk of processChunks(stream)) { console.log(`Processing rate: ${chunk.stats.processingRate} bytes/sec`);} Copy
const stream = await createStream('/path/to/large-file.fastq');for await (const chunk of processChunks(stream)) { console.log(`Processing rate: ${chunk.stats.processingRate} bytes/sec`);}
Create stream processing statistics tracker
Provides real-time statistics about stream processing performance and resource usage.