mirror of https://github.com/rusefi/rusefi.git
Lua refresh rate transparency/logic etc #5939
hopefully not too much profiling
This commit is contained in:
parent
68b888f30a
commit
712a3f973e
|
@ -56,6 +56,7 @@ void processLuaCan(const size_t busIndex, const CANRxFrame& frame) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handleCanFrame(LuaHandle& ls, CanFrameData* data) {
|
static void handleCanFrame(LuaHandle& ls, CanFrameData* data) {
|
||||||
|
ScopePerf perf(PE::LuaOneCanRxCallback);
|
||||||
if (data->Callback == NO_CALLBACK) {
|
if (data->Callback == NO_CALLBACK) {
|
||||||
// No callback, use catch-all function
|
// No callback, use catch-all function
|
||||||
lua_getglobal(ls, "onCanRx");
|
lua_getglobal(ls, "onCanRx");
|
||||||
|
|
|
@ -168,6 +168,7 @@ static int validateCanChannelAndConvertFromHumanIntoZeroIndex(lua_State* l) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lua_txCan(lua_State* l) {
|
static int lua_txCan(lua_State* l) {
|
||||||
|
ScopePerf perf(PE::LuaOneCanTxFunction);
|
||||||
int bus;
|
int bus;
|
||||||
int id;
|
int id;
|
||||||
int ext;
|
int ext;
|
||||||
|
|
|
@ -70,7 +70,9 @@ enum class PE : uint8_t {
|
||||||
LogTriggerTooth,
|
LogTriggerTooth,
|
||||||
LuaTickFunction,
|
LuaTickFunction,
|
||||||
LuaOneCanRxFunction,
|
LuaOneCanRxFunction,
|
||||||
LuaAllCanRxFunction
|
LuaAllCanRxFunction,
|
||||||
|
LuaOneCanRxCallback,
|
||||||
|
LuaOneCanTxFunction,
|
||||||
// enum_end_tag
|
// enum_end_tag
|
||||||
// The tag above is consumed by PerfTraceTool.java
|
// The tag above is consumed by PerfTraceTool.java
|
||||||
// please note that the tool requires a comma at the end of last value
|
// please note that the tool requires a comma at the end of last value
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package com.rusefi.tracing;
|
package com.rusefi.tracing;
|
||||||
// generated Thu Feb 15 09:37:27 EST 2024 by class com.rusefi.PerfTraceEnumGenerator
|
// generated Thu Feb 15 09:45:57 EST 2024 by class com.rusefi.PerfTraceEnumGenerator
|
||||||
public class EnumNames {
|
public class EnumNames {
|
||||||
public static final String[] TypeNames = {
|
public static final String[] TypeNames = {
|
||||||
"INVALID",
|
"INVALID",
|
||||||
|
@ -54,5 +54,8 @@ public class EnumNames {
|
||||||
"LogTriggerTooth",
|
"LogTriggerTooth",
|
||||||
"LuaTickFunction",
|
"LuaTickFunction",
|
||||||
"LuaOneCanRxFunction",
|
"LuaOneCanRxFunction",
|
||||||
|
"LuaAllCanRxFunction",
|
||||||
|
"LuaOneCanRxCallback",
|
||||||
|
"LuaOneCanTxFunction",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue