Commit d4737972 authored by Michal Berger's avatar Michal Berger Committed by Jim Harris
Browse files

scripts/perf: Add env knob to disable power monitors



Currently we execute these by default on top of every test suite.
This may not be ideal for environments which provide minimal set
of autotest|autobuild dependencies. To not put much stress on
such environments, allow them to disable power monitors.

Change-Id: I5a7f5f366bd9f9007249528a7d4f1707c50123ad
Signed-off-by: default avatarMichal Berger <michal.berger@nutanix.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25263


Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
parent 73714383
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@ retag() {
start_monitor_resources() {
	local monitor

	[[ -z $DISABLE_POWER_MONITOR ]] || return 0

	for monitor in "${MONITOR_RESOURCES[@]}"; do
		${SUDO[MONITOR_RESOURCES_SUDO["$monitor"]]} \
			"$_pmdir/$monitor" -d "$PM_OUTPUTDIR" \