getSystemInfo() — astro Function Reference
Architecture documentation for the getSystemInfo() function in system-info.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 8c4e9a4a_ef39_232c_ced4_472ed3d5c10b["getSystemInfo()"] cb29abf3_2786_047a_1a19_d59b21c4ab43["system-info.ts"] 8c4e9a4a_ef39_232c_ced4_472ed3d5c10b -->|defined in| cb29abf3_2786_047a_1a19_d59b21c4ab43 style 8c4e9a4a_ef39_232c_ced4_472ed3d5c10b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/telemetry/src/system-info.ts lines 50–78
export function getSystemInfo(versions: { viteVersion: string; astroVersion: string }): SystemInfo {
if (meta) {
return meta;
}
const cpus = os.cpus() || [];
return {
// Version information
nodeVersion: process.version.replace(/^v?/, ''),
viteVersion: versions.viteVersion,
astroVersion: versions.astroVersion,
// Software information
systemPlatform: os.platform(),
systemRelease: os.release(),
systemArchitecture: os.arch(),
// Machine information
cpuCount: cpus.length,
cpuModel: cpus.length ? cpus[0].model : null,
cpuSpeed: cpus.length ? cpus[0].speed : null,
memoryInMb: Math.trunc(os.totalmem() / Math.pow(1024, 2)),
// Environment information
isDocker: isDocker(),
isTTY: process.stdout.isTTY,
isWSL,
isCI,
ciName,
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getSystemInfo() do?
getSystemInfo() is a function in the astro codebase, defined in packages/telemetry/src/system-info.ts.
Where is getSystemInfo() defined?
getSystemInfo() is defined in packages/telemetry/src/system-info.ts at line 50.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free