Home / Function/ printResult() — astro Function Reference

printResult() — astro Function Reference

Architecture documentation for the printResult() function in memory.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  16468fb5_b9ec_692f_3fbd_07db538d05f7["printResult()"]
  b65fc43f_6458_b0c9_e367_578ca2d1c391["memory.js"]
  16468fb5_b9ec_692f_3fbd_07db538d05f7 -->|defined in| b65fc43f_6458_b0c9_e367_578ca2d1c391
  42bdd164_e49f_c534_1484_3bf0799c8a9f["run()"]
  42bdd164_e49f_c534_1484_3bf0799c8a9f -->|calls| 16468fb5_b9ec_692f_3fbd_07db538d05f7
  style 16468fb5_b9ec_692f_3fbd_07db538d05f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmark/bench/memory.js lines 46–61

function printResult(output) {
	return markdownTable(
		[
			['', 'Elapsed time (s)', 'Memory used (MB)', 'Final memory (MB)'],
			...Object.entries(output).map(([name, stat]) => [
				name,
				(stat.elapsedTime / 1000).toFixed(2),
				(stat.heapUsedChange / 1024 / 1024).toFixed(2),
				(stat.heapUsedTotal / 1024 / 1024).toFixed(2),
			]),
		],
		{
			align: ['l', 'r', 'r', 'r'],
		},
	);
}

Subdomains

Called By

Frequently Asked Questions

What does printResult() do?
printResult() is a function in the astro codebase, defined in benchmark/bench/memory.js.
Where is printResult() defined?
printResult() is defined in benchmark/bench/memory.js at line 46.
What calls printResult()?
printResult() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free