Introduce COVERAGE_ON/OFF macros, rename shell functions to shell_*.
Coverage collection slowdown is ~75x now.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user