Skip to content

Commit 3cc9c91

Browse files
Fixed local profile methods usage when no profiler is enabled (#158)
* [add] Added documentation about on-cpu profiling of local benchmarks * [fix] Fixed local_profilers_start_if_required() call when no profiler is active * [fix] fixed collection_summary_str usage when profilers are not enabled
1 parent 55e2a50 commit 3cc9c91

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>"]
66
readme = "README.md"

redisbench_admin/run_local/profile_local.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ def local_profilers_start_if_required(
143143
start_time_str,
144144
test_name,
145145
):
146+
profilers_map = {}
147+
profiler_name = None
146148
if profilers_enabled:
147149
logging.info("Profilers are enabled")
148150
total_involved_processes = len(redis_processes)

redisbench_admin/run_local/run_local.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def run_local_command_logic(args, project_name, project_version):
9595

9696
dso = dso_check(args.dso, local_module_file)
9797
# start the profile
98+
collection_summary_str = ""
9899
if profilers_enabled:
99100
collection_summary_str = local_profilers_platform_checks(
100101
dso, github_actor, github_branch, github_repo_name, github_sha

0 commit comments

Comments
 (0)