summaryrefslogtreecommitdiff
path: root/include/object
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-05 15:42:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-05 15:42:41 +0100
commit32b799a03cf07de504a77b19432dc523166f472b (patch)
tree7461a1476ade1bfcd68a4236de35167dd402b0f4 /include/object
parentbda22fb5f8c9267943b9653031d279fe14edcd2a (diff)
counter: rename overflowed to overflow
Diffstat (limited to 'include/object')
-rw-r--r--include/object/ptalog.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/object/ptalog.h b/include/object/ptalog.h
index 21aaa91..14ff2fd 100644
--- a/include/object/ptalog.h
+++ b/include/object/ptalog.h
@@ -41,6 +41,13 @@ class PTALog {
}
}
+#ifdef PTALOG_TIMING
+ inline void passNop(Counter& counter)
+ {
+ kout << "[PTA] nop=" << counter.value << "/" << counter.overflow << endl;
+ }
+#endif
+
inline void reset()
{
log_index = 0;
@@ -64,7 +71,8 @@ class PTALog {
kout << "[PTA] trace, count=" << dec << log_index << endl;
for (uint8_t i = 0; i < log_index; i++) {
#ifdef PTALOG_TIMING
- kout << "[PTA] transition=" << log[i].transition_id << endl;
+ kout << "[PTA] transition=" << log[i].transition_id;
+ kout << " cycles=" << log[i].timer << "/" << log[i].overflow << endl;
#else
kout << "[PTA] transition=" << log[i].transition_id << endl;
#endif