From 288eb9ca5435dbff34d29dec3047613080b53f69 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 23 Jan 2026 00:43:57 +0300 Subject: [PATCH] docs: elaborate on snapshots feature; fix title alignment Signed-off-by: NotAShelf Change-Id: I364042f346ac5c58b07b3db95d0ebd856a6a6964 --- docs/README.md | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/docs/README.md b/docs/README.md index 917fa8b..916a9db 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,10 +1,8 @@ -# nix-evaluator-stats -
- - +

nix-evaluator-stats

+
Lints & Formatting + ```bash # Invoke a Nix command with NIX_SHOW_STATS=1 $ NIX_SHOW_STATS=1 nix eval nixpkgs#hello -- --option eval-cache false # disable eval-cache for accuracy + +# Or write to a file directly +$ NIX_SHOW_STATS_PATH=stats.json nix eval nixpkgs#hello -- --option eval-cache false ``` + + 1. Create the JSON export -2. Copy it -3. Paste it in the input field that appears the first time you visit the site +2. Copy it if printed to stdout +3. Paste or upload it in the input field that appears the first time you visit + the site Once you hit "Load", the JSON will be parsed and you'll be looking at a dash board of your export. By using the snapshot feature, i.e., saving a particular @@ -55,6 +61,15 @@ analysis you may compare two _named_ analyses at a time. > UI bugs or areas where UI polish is very clearly missing. Please crate an > issue if the generated graph or the site UI looks off. Thanks :) +### Snapshots + +Snapshots are an "experimental" (just means they're new and unpolished) feature +that lets you save an analysis in your browser storage with a name to be used +later on in the comparison view. At least two **named** analyses (i.e., +snapshots) are required for an analysis. + +You can save an analysis as a snapshot from the save button on the bottom right. + ## Hacking This project is built with Vite, using Typescript-React (`.tsx`) and SolidJS. A