From 4d354cd3825afbe0a0d62f41f8b30226335d2fc6 Mon Sep 17 00:00:00 2001 From: Florian Sattler Date: Fri, 16 Aug 2024 12:20:26 +0200 Subject: [PATCH] Make xray a local import --- varats/varats/experiments/vara/hot_function_experiment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varats/varats/experiments/vara/hot_function_experiment.py b/varats/varats/experiments/vara/hot_function_experiment.py index 653917ddc..0e3a9513c 100644 --- a/varats/varats/experiments/vara/hot_function_experiment.py +++ b/varats/varats/experiments/vara/hot_function_experiment.py @@ -5,7 +5,6 @@ from benchbuild.extensions import compiler, run, time from benchbuild.utils import actions from plumbum import local -from plumbum.cmd import llvm_xray from varats.experiment.experiment_util import ( ZippedReportFolder, @@ -76,6 +75,8 @@ def __str__(self, indent: int = 0) -> str: ) def run_instrumented_code(self) -> actions.StepResult: + from plumbum.cmd import llvm_xray + for binary in self.project.binaries: if binary.type != BinaryType.EXECUTABLE: # Skip libraries as we cannot run them