diff options
Diffstat (limited to 'include/object')
-rw-r--r-- | include/object/ptalog.h | 10 |
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 |