Record per-step timings of offline/terrain builds
CI / check (push) Successful in 38s
CI / deploy (push) Successful in 12s

Live in build-status while running; every finished build (done or
error) is appended to data/build_history.jsonl with its step timings,
regions, thread count and, for offline builds, the tail of Planetiler's
output (its own per-phase summary). GET /api/build-history, shown in the
debug panel, gives a baseline to compare later builds against.
This commit is contained in:
randy committed 2026-11-12 11:54:49 +01:00
1 parent 7429e4ae33
commit 81e688be9b
4 files changed
+110 -9

No files matched your search

+6
View File
@@ -320,6 +320,12 @@ module Maptool
json PmtilesBuilder.offline_status
end
# Per-step timings of past offline/terrain builds, newest first — the
# "benchmark" to compare a later build against (debug panel).
get "/api/build-history" do
json PmtilesBuilder.build_history(DATA_DIR)
end
# Deletes offline.pmtiles plus its whole per-country download cache —
# a manual "reclaim the space"/"start over" action, distinct from
# unticking countries in the region picker (which only changes what a