Skip to main content

Module report

Module report 

Source
Expand description

Render HTML report from timing tracking data.

Re-exportsยง

use cargo_util::collections::HashMap; ๐Ÿ”’
use cargo_util::collections::HashSet; ๐Ÿ”’
use std::borrow::Cow; ๐Ÿ”’
use std::io::Write; ๐Ÿ”’
use cargo_util::collections::IndexMap; ๐Ÿ”’
use itertools::Itertools as _; ๐Ÿ”’
use crate::CargoResult; ๐Ÿ”’
use crate::compiler::UnitIndex; ๐Ÿ”’
use crate::util::HumanBytes; ๐Ÿ”’
use super::CompilationSection; ๐Ÿ”’
use super::UnitData; ๐Ÿ”’

Structsยง

Concurrency
Concurrency tracking information.
RenderContext
SectionData
Postprocessed section data that has both start and an end.

Enumsยง

SectionName
Name of an individual compilation section.

Staticsยง

HTML_CANVAS ๐Ÿ”’
HTML_TMPL ๐Ÿ”’

Functionsยง

aggregate_sections
Aggregates section timing information from individual compilation sections.
compute_concurrency
Derives concurrency information from unit timing data.
round_to_centisecond
Rounds seconds to 0.01s precision.
write_html
Writes an HTML report.
write_js_data ๐Ÿ”’
Write timing data in JavaScript. Primarily for timings.js to put data in a <script> HTML element to draw graphs.
write_summary_table ๐Ÿ”’
Render the summary table.
write_unit_table ๐Ÿ”’
Render the table of all units.