only:Lua refresh rate transparency/logic etc #5939

new scope
This commit is contained in:
rusefillc 2024-02-15 09:16:46 -05:00
parent e9467fb5b9
commit 2b5178b03f
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)) {

View File

@ -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