From 32b799a03cf07de504a77b19432dc523166f472b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 5 Mar 2019 15:42:41 +0100 Subject: counter: rename overflowed to overflow --- include/object/ptalog.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/object/ptalog.h') 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 -- cgit v1.2.3