writeStats() — astro Function Reference
Architecture documentation for the writeStats() function in timer.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 7bf2af9c_77a8_1e2a_8e68_9c10812398ce["writeStats()"] 90d3bda7_4cb5_4581_6649_981fa38bed51["AstroTimer"] 7bf2af9c_77a8_1e2a_8e68_9c10812398ce -->|defined in| 90d3bda7_4cb5_4581_6649_981fa38bed51 style 7bf2af9c_77a8_1e2a_8e68_9c10812398ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/config/timer.ts lines 60–64
writeStats() {
if (!this.enabled) return;
// @ts-expect-error
fs.writeFileSync(process.env.ASTRO_TIMER_PATH, JSON.stringify(this.stats, null, 2));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does writeStats() do?
writeStats() is a function in the astro codebase, defined in packages/astro/src/core/config/timer.ts.
Where is writeStats() defined?
writeStats() is defined in packages/astro/src/core/config/timer.ts at line 60.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free