From 43295e0ced0c526a8fdf8315367452b9d0f3183a Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 1 Jul 2025 12:44:56 +0200 Subject: [PATCH] fix badword, fix python string format --- docs/internals/SCORECARD.md | 2 +- tests/http/testenv/curl.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/internals/SCORECARD.md b/docs/internals/SCORECARD.md index 7fcf6f85a4..a28b42f040 100644 --- a/docs/internals/SCORECARD.md +++ b/docs/internals/SCORECARD.md @@ -66,6 +66,6 @@ With the excellent [Flame Graph](https://github.com/brendangregg/FlameGraph) by curl> FLAMEGRAPH=/Users/sei/projects/FlameGraph python3 tests/http/scorecard.py \ -r --request-count=50000 --request-parallels=100 --samples=1 --flame h2 ``` -and you'll have the SVG of the run in `tests/http/gen/curl/curl.flamegraph.svg`. You can open that in Firefox and zoom in/out of stacks of interest. +and the SVG of the run is in `tests/http/gen/curl/curl.flamegraph.svg`. You can open that in Firefox and zoom in/out of stacks of interest. Note: as with `dtrace`, the flame graph is for the last invocation of curl done by scorecard. diff --git a/tests/http/testenv/curl.py b/tests/http/testenv/curl.py index 6146671800..fb28cd7fa7 100644 --- a/tests/http/testenv/curl.py +++ b/tests/http/testenv/curl.py @@ -999,7 +999,7 @@ class CurlClient: if not os.path.exists(dtrace.file): raise Exception(f'dtrace output file does not exist: {dtrace.file}') if 'FLAMEGRAPH' not in os.environ: - raise Exception(f'Env variable FLAMEGRAPH not set') + raise Exception('Env variable FLAMEGRAPH not set') fg_dir = os.environ['FLAMEGRAPH'] if not os.path.exists(fg_dir): raise Exception(f'FlameGraph directory not found: {fg_dir}')