fix badword, fix python string format

This commit is contained in:
Stefan Eissing 2025-07-01 12:44:56 +02:00
parent 4fb52808dc
commit 43295e0ced
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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}')