Introduce COVERAGE_ON/OFF macros, rename shell functions to shell_*.

Coverage collection slowdown is ~75x now.
This commit is contained in:
2020-03-10 00:03:57 +03:00
parent 70fc19fc5e
commit 7d3dea91c0
7 changed files with 250 additions and 142 deletions
+6
View File
@@ -1,7 +1,13 @@
#ifndef TRACE_H_INCLUDED
#define TRACE_H_INCLUDED
#define COVERAGE_ON() do { trace_resume(coverage); } while (0)
#define COVERAGE_OFF() do { coverage = trace_pause(); } while (0)
void trace_begin(void);
void trace_end(void);
uint32_t trace_pause(void);
void trace_resume(uint32_t value);
#endif