diff options
| author | 2026-09-28 23:58:37 -0700 | |
|---|---|---|
| committer | 2026-09-29 20:53:09 +0200 | |
| commit | 4b34e3ad4cbb91ff5d6f99bb9c7dd85694c15bec (patch) | |
| tree | 936dd688f33fb65cadc8bd25c859172915c37f78 /scripts/Makefile.thinlto | |
| parent | perf test: Reduce overhead and contention in Python shell tests (diff) | |
perf python event_analyzing_sample: Default to in-memory SQLite database
When -d/--db is not specified, event_analyzing_sample.py created a
temporary file in /tmp via tempfile.mkstemp() and deleted it in
trace_end(). As noted during review, creating the database in a shared
/tmp directory does not reserve SQLite's auxiliary sidecar filenames
(-journal or -wal), and a temporary on-disk file is unnecessary when the
caller did not ask to persist the database.
Default to sqlite3.connect(":memory:") when db_path is not provided,
removing the temporary file creation and cleanup logic, and test both
the default in-memory mode and explicit -d file mode in
test_event_analyzing_sample_python.sh.
Fixes: eeb70645a8097437 ("perf python: Port event_analyzing_sample to perf module")
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
