blob: 7fef229bf03bb943cda68088b5a26f52dcd49fd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "osint_debug.h"
void osThreadProfileInit(void) {
register u32 saveMask = __osDisableInt();
OSId i;
__osThprofFunc = NULL;
__osThprofFlag = 1;
__osThprofCount = 0;
__osThprofStack = &__osThprofHeap[(THPROF_STACKSIZE - 8) / sizeof(*__osThprofHeap)];
__osRestoreInt(saveMask);
for (i = 0; i < THPROF_IDMAX; i++) {
osThreadProfileClear(i);
}
}
|