parent
e9467fb5b9
commit
2b5178b03f
|
@ -258,7 +258,7 @@ static void doInteractive(LuaHandle& ls) {
|
|||
lua_settop(ls, 0);
|
||||
}
|
||||
|
||||
void invokeTick(LuaHandle& ls) {
|
||||
static void invokeTick(LuaHandle& ls) {
|
||||
ScopePerf perf(PE::LuaTickFunction);
|
||||
|
||||
// run the tick function
|
||||
|
|
|
@ -101,6 +101,7 @@ static void handleCanFrame(LuaHandle& ls, CanFrameData* data) {
|
|||
}
|
||||
|
||||
static bool doOneLuaCanRx(LuaHandle& ls) {
|
||||
ScopePerf perf(PE::LuaOneCanRxFunction);
|
||||
CanFrameData* data;
|
||||
|
||||
msg_t msg = filledBuffers.fetch(&data, TIME_IMMEDIATE);
|
||||
|
@ -128,6 +129,7 @@ static bool doOneLuaCanRx(LuaHandle& ls) {
|
|||
}
|
||||
|
||||
int doLuaCanRx(LuaHandle& ls) {
|
||||
ScopePerf perf(PE::LuaAllCanRxFunction);
|
||||
int counter = 0;
|
||||
// While it processed a frame, continue checking
|
||||
while (doOneLuaCanRx(ls)) {
|
||||
|
|
|
@ -69,6 +69,8 @@ enum class PE : uint8_t {
|
|||
SoftwareKnockProcess,
|
||||
LogTriggerTooth,
|
||||
LuaTickFunction,
|
||||
LuaOneCanRxFunction,
|
||||
LuaAllCanRxFunction
|
||||
// enum_end_tag
|
||||
// The tag above is consumed by PerfTraceTool.java
|
||||
// please note that the tool requires a comma at the end of last value
|
||||
|
|
Loading…
Reference in New Issue