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.
- Render
Context - Section
Data - Postprocessed section data that has both start and an end.
Enumsยง
- Section
Name - 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.jsto 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.