diff --git a/model/task/environment/openmp/interaction/loop.py b/model/task/environment/openmp/interaction/loop.py index aa1f611c03db3a0b93183cbc25ab5588231e5136..773fea2f710a51d00fe88173bd58a07fd9c7ee39 100644 --- a/model/task/environment/openmp/interaction/loop.py +++ b/model/task/environment/openmp/interaction/loop.py @@ -78,6 +78,8 @@ class cmd_omp_loop_profile_iterations (gdb.Command): def invoke (self, args, from_tty): global iteration_profiling_enabled + + gdb.execute("omp enable loop static") iteration_profiling_enabled = not iteration_profiling_enabled action = "enabled" if iteration_profiling_enabled else "disabled" diff --git a/model/task/environment/openmp/interaction/profile.py b/model/task/environment/openmp/interaction/profile.py deleted file mode 100644 index c6674e2cf1dd72a74f37dbda114692285d9dc300..0000000000000000000000000000000000000000 --- a/model/task/environment/openmp/interaction/profile.py +++ /dev/null @@ -1,22 +0,0 @@ -import logging; log = logging.getLogger(__name__) -log_user = logging.getLogger("mcgdb.log.user.openmp.profile") - -import gdb - -from mcgdb.toolbox import my_gdb - -representation = None - -@my_gdb.internal -def activate(): - global representation; from .. import representation - - cmd_omp_profile() - - -class cmd_omp_profile (gdb.Command): - def __init__ (self): - gdb.Command.__init__(self, "omp profile", gdb.COMMAND_OBSCURE, prefix=True) - - def invoke (self, arg, from_tty): - log_user.warn("Please specify what kind of profiling you want to do.")