From 505e88dd9744f3c773bd37d8a5e546fd969bf007 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 25 Oct 2022 14:19:03 -0400 Subject: [PATCH 1/4] Use released Inferno. --- Cargo.lock | 3 ++- memapi/Cargo.toml | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index af7aa5af..a8c35da4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -424,7 +424,8 @@ dependencies = [ [[package]] name = "inferno" version = "0.11.9" -source = "git+https://github.com/itamarst/inferno.git?branch=monospace-fonts#41b1c3b39430e77534b4954443bc7d5b32acc60f" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb31a5d9068fccb34562007cd564bb08fff1478255b0534c549e93fcb658cd90" dependencies = [ "ahash 0.7.6", "atty", diff --git a/memapi/Cargo.toml b/memapi/Cargo.toml index 741af688..50cb9147 100644 --- a/memapi/Cargo.toml +++ b/memapi/Cargo.toml @@ -19,9 +19,7 @@ libloading = "0.7" libc = "0.2" [dependencies.inferno] -# Temporary fork until https://github.com/jonhoo/inferno/pull/262 is merged. -git = "https://github.com/itamarst/inferno.git" -branch = "monospace-fonts" +version = "0.11" default-features = false [dependencies.psutil] From 8c83c579805f28b5440342bfacebe5ebd44cca97 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 25 Oct 2022 14:19:30 -0400 Subject: [PATCH 2/4] Advertise Sciagraph more prominently. --- filprofiler/_report.py | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/filprofiler/_report.py b/filprofiler/_report.py index 83694246..5bc6c017 100644 --- a/filprofiler/_report.py +++ b/filprofiler/_report.py @@ -36,14 +36,15 @@ def render_report(output_path: str, now: datetime) -> str: body {{ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; line-height: 1.2; - max-width: 40rem; + max-width: 90%; margin: 4rem auto; font-size: 18px; }} - blockquote {{ border-width: 1px; border-color: black; border-style: solid; padding: 1em; }} - div {{ - text-align: center; + .center {{ + max-width: 40rem; + margin: 0 auto; }} + blockquote {{ border-width: 1px; border-color: black; border-style: solid; padding: 1em; }}