|
Open Model Railroad Network (OpenMRN)
|
A custom unidirectional memory allocator so we can take traces from interrupts. More...
#include <cpu_profile.hxx>
Public Member Functions | |
| void * | alloc (unsigned size) |
Public Attributes | |
| unsigned | limitReached {0} |
| how many times did we run into the MAX_STRACE limit. | |
| unsigned | singleLenHack {0} |
| How many times did we apply the backtrace hack to work around single-entry backtraces. | |
Private Attributes | |
| unsigned | buffer [TRACE_BUFFER_LENGTH_WORDS] |
| Storage of the trace buffer. | |
| unsigned | endOffset {0} |
| index into buffer[] to denote first free element. | |
A custom unidirectional memory allocator so we can take traces from interrupts.
Definition at line 55 of file cpu_profile.hxx.
|
inline |
Definition at line 58 of file cpu_profile.hxx.
|
private |
Storage of the trace buffer.
Definition at line 73 of file cpu_profile.hxx.
|
private |
index into buffer[] to denote first free element.
Definition at line 75 of file cpu_profile.hxx.
| unsigned TraceAllocator::limitReached {0} |
how many times did we run into the MAX_STRACE limit.
Definition at line 79 of file cpu_profile.hxx.
| unsigned TraceAllocator::singleLenHack {0} |
How many times did we apply the backtrace hack to work around single-entry backtraces.
Definition at line 82 of file cpu_profile.hxx.