diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-27 13:49:00 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-27 13:49:00 +0200 |
| commit | 2e3833dd30fafdc270e8d80a78af9116571dc247 (patch) | |
| tree | 8428eb9938b8cf5351ff6e7b78b2968cc37b2e27 /README.md | |
| parent | abbbf17bcfe6dfa663b7019c4892db09e27b3808 (diff) | |
Use subcommand args instead of flags for CLI
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -21,11 +21,11 @@ Climb profile by 100m step. ```bash mise run build mise run dev-watch # Start the web server on http://localhost:8080 -go run . -fetch-osm # Download the France OSM PBF (resumable) -go run . -extract-osm france-latest.osm.pbf # Extract mountain passes from a France OSM PBF -go run . -backfill # Recompute and persist all ride computed values -go run . -backtest # Benchmark computed vs stored ride values -go run . -pprof # Expose pprof endpoints at `/debug/pprof` +go run . fetch-osm # Download the France OSM PBF (resumable) +go run . extract-osm france-latest.osm.pbf # Extract mountain passes from a France OSM PBF +go run . backfill # Recompute and persist all ride computed values +go run . backtest # Benchmark computed vs stored ride values +go run . -- -pprof # Expose pprof endpoints at `/debug/pprof` docker compose up -d pyroscope # Start the local Pyroscope server on http://localhost:4040 ``` @@ -129,7 +129,8 @@ Answer "what slows the server" with function-level CPU profiles grouped by route ```bash # Start the server with pprof (exposes http://localhost:8080/debug/pprof/) -go run . -pprof +go run . -- -pprof +# or: go run . serve --pprof # or: mise run dev -- -pprof ``` @@ -158,7 +159,6 @@ go tool pprof -http=:8081 http://localhost:8080/debug/pprof/heap # allocs ## TODO -- cli args instea dof flags - screaming archi + hexagon - Compute estimated power, speed - For a ride, scatter, one point per 100m segment. Slope vs speed |
