From ab0d13b2eb26801c59272b4c200d4918a10c51aa Mon Sep 17 00:00:00 2001 From: Florian Sattler Date: Mon, 9 Oct 2023 20:44:17 +0200 Subject: [PATCH] A few dune tweaks --- .../experiments/vara/feature_perf_precision.py | 16 +++++++++++++--- varats/varats/projects/cpp_projects/dune.py | 6 ++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/varats/varats/experiments/vara/feature_perf_precision.py b/varats/varats/experiments/vara/feature_perf_precision.py index 758b941fd..fc27a1543 100644 --- a/varats/varats/experiments/vara/feature_perf_precision.py +++ b/varats/varats/experiments/vara/feature_perf_precision.py @@ -83,6 +83,13 @@ def get_extra_cflags(project: VProject) -> tp.List[str]: return [] +def get_threshold(project: VProject) -> int: + if project.DOMAIN.value is ProjectDomains.TEST: + return 0 + + return 50 + + class AnalysisProjectStepBase(OutputFolderStep): project: VProject @@ -383,9 +390,12 @@ def setup_actions_for_vara_experiment( project.cflags += experiment.get_vara_feature_cflags(project) - threshold = 0 if project.DOMAIN.value is ProjectDomains.TEST else 100 + threshold = get_threshold(project) project.cflags += experiment.get_vara_tracing_cflags( - instr_type, project=project, instruction_threshold=threshold + instr_type, + project=project, + save_temps=True, + instruction_threshold=threshold ) project.cflags += get_extra_cflags(project) @@ -917,7 +927,7 @@ def setup_actions_for_vara_overhead_experiment( ) -> tp.MutableSequence[actions.Step]: project.cflags += experiment.get_vara_feature_cflags(project) - threshold = 0 if project.DOMAIN.value is ProjectDomains.TEST else 100 + threshold = get_threshold(project) project.cflags += experiment.get_vara_tracing_cflags( instr_type, project=project, instruction_threshold=threshold ) diff --git a/varats/varats/projects/cpp_projects/dune.py b/varats/varats/projects/cpp_projects/dune.py index e0376d5c7..6ad588134 100644 --- a/varats/varats/projects/cpp_projects/dune.py +++ b/varats/varats/projects/cpp_projects/dune.py @@ -16,6 +16,7 @@ BinaryType, ProjectBinaryWrapper, ) +from varats.project.sources import FeatureSource from varats.project.varats_project import VProject from varats.utils.git_util import ShortCommitHash, RevisionBinaryMap @@ -48,12 +49,13 @@ class DunePerfRegression(VProject): SOURCE = [ PaperConfigSpecificGit( project_name='DunePerfRegression', - remote='git@github.com:se-sic/dune-VaRA.git', + remote='https://github.com/se-sic/dune-VaRA.git', local='dune-VaRA', refspec='origin/HEAD', limit=None, shallow=False - ) + ), + FeatureSource() ] CONTAINER = get_base_image(ImageBase.DEBIAN_10)