Bobby Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/67777?usp=email )

Change subject: misc: bla
......................................................................

misc: bla

Change-Id: I3898409a1f090b6289ee65517ec1dbb736ab1fb7
---
M src/python/gem5/resources/looppoint.py
M tests/pyunit/pyunit_looppoint.py
2 files changed, 15 insertions(+), 3 deletions(-)



diff --git a/src/python/gem5/resources/looppoint.py b/src/python/gem5/resources/looppoint.py
index 3496c2e..ea126d2 100644
--- a/src/python/gem5/resources/looppoint.py
+++ b/src/python/gem5/resources/looppoint.py
@@ -311,8 +311,11 @@
         """
         targets = []
         for rid in self.get_regions():
-            print(rid)
-            print(self.get_regions()[rid])
+ for count_pairs in self.get_regions()[rid].get_pc_count_pairs():
+                print("-----")
+                print(f"RID: {rid}")
+                print(f"PC: {count_pairs._pc}")
+                print(f"Count: {count_pairs._count}")
             targets.extend(self.get_regions()[rid].get_pc_count_pairs())

     def to_json(self) -> Dict:
diff --git a/tests/pyunit/pyunit_looppoint.py b/tests/pyunit/pyunit_looppoint.py
index 1edb6fa..61e247a 100644
--- a/tests/pyunit/pyunit_looppoint.py
+++ b/tests/pyunit/pyunit_looppoint.py
@@ -249,7 +249,7 @@
         # if self.get_warmup():
         #    pc_count_pairs.extend(self.get_warmup().get_pc_count_pairs())

-        self.assertEquals(3, len(pc_count_pairs))
+        self.assertEquals(4, len(pc_count_pairs))
         self.assertEquals(PcCountPair(56, 2345), pc_count_pairs[0])
         self.assertEquals(PcCountPair(645, 457), pc_count_pairs[1])
         self.assertEquals(PcCountPair(100, 200), pc_count_pairs[2])

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/67777?usp=email To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I3898409a1f090b6289ee65517ec1dbb736ab1fb7
Gerrit-Change-Number: 67777
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby Bruce <bbr...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org

Reply via email to