From 635009717c320a46419b6436c83aed0374ab13f6 Mon Sep 17 00:00:00 2001
From: Kevin P <git@0x972.info>
Date: Tue, 24 Jan 2017 14:01:00 +0100
Subject: [PATCH] improve

---
 .../environment/openmp/interaction/loop.py    |  2 ++
 .../environment/openmp/interaction/profile.py | 22 -------------------
 2 files changed, 2 insertions(+), 22 deletions(-)
 delete mode 100644 model/task/environment/openmp/interaction/profile.py

diff --git a/model/task/environment/openmp/interaction/loop.py b/model/task/environment/openmp/interaction/loop.py
index aa1f611..773fea2 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 c6674e2..0000000
--- 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.")
-- 
GitLab