Skip to main content

html

Function html 

Source
pub fn html(h: &History, rev: &str, repo: Option<&str>, credit: bool) -> String
Expand description

Render the history as one self-contained HTML page: a chart per series, instruction counts above and wall time beneath it.

Self-contained — inline SVG and CSS, no script, nothing fetched — so it can be published to GitHub Pages or opened from disk and look the same, and so the page cannot break when a CDN moves.

Wall time gets its own smaller chart rather than a second axis on the first. Two y-scales on one plot invite reading the crossing of two lines as meaningful, and here one of them is the metric the gate ignores.