Skip to content

Commit 72f995f

Browse files
committed
web: add an extra step to the rustdoc rendering time monitoring
1 parent a0af9ab commit 72f995f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/web/rustdoc.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
339339
body_class.push_str(" container-rustdoc");
340340
}
341341

342-
rendering_time.step("serve html");
342+
rendering_time.step("find latest path");
343343

344344
let latest_release = crate_details.latest_release();
345345

@@ -367,6 +367,8 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
367367
format!("/crate/{}/{}", name, latest_version)
368368
};
369369

370+
rendering_time.step("serve html");
371+
370372
// The path within this crate version's rustdoc output
371373
let inner_path = {
372374
let mut inner_path = req_path.clone();

0 commit comments

Comments
 (0)