Home / Function/ start() — astro Function Reference

start() — astro Function Reference

Architecture documentation for the start() function in timer.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a887a94f_53d4_d2cd_d7e2_7bf7b8fbe196["start()"]
  90d3bda7_4cb5_4581_6649_981fa38bed51["AstroTimer"]
  a887a94f_53d4_d2cd_d7e2_7bf7b8fbe196 -->|defined in| 90d3bda7_4cb5_4581_6649_981fa38bed51
  style a887a94f_53d4_d2cd_d7e2_7bf7b8fbe196 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/config/timer.ts lines 31–38

	start(name: string) {
		if (!this.enabled) return;
		globalThis.gc?.();
		this.ongoingTimers.set(name, {
			startTime: performance.now(),
			startHeap: process.memoryUsage().heapUsed,
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does start() do?
start() is a function in the astro codebase, defined in packages/astro/src/core/config/timer.ts.
Where is start() defined?
start() is defined in packages/astro/src/core/config/timer.ts at line 31.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free