mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
disable ifc profiling wip code, fix debug leftovers
This commit is contained in:
1 parent
ce1a7181a3
commit
fd1cf73762
4 files changed
+11
-10
No files matched your search
+5
-4
@@ -6652,14 +6652,15 @@ uint8_t mg_l2_ip6put(enum mg_l2type type, uint8_t *addr, uint8_t *opts);
|
||||
bool mg_l2_poll(struct mg_tcpip_if *ifp, bool expired_1000ms);
|
||||
|
||||
static void mg_tcpip_call(struct mg_tcpip_if *ifp, int ev, void *ev_data) {
|
||||
#if MG_ENABLE_PROFILE
|
||||
#if 0 && MG_ENABLE_PROFILE
|
||||
const char *names[] = {"TCPIP_EV_ST_CHG", "TCPIP_EV_DHCP_DNS",
|
||||
"TCPIP_EV_DHCP_SNTP", "TCPIP_EV_ARP",
|
||||
"TCPIP_EV_TIMER_1S", "TCPIP_EV_WIFI_SCAN_RESULT",
|
||||
"TCPIP_EV_WIFI_SCAN_END", "TCPIP_EV_WIFI_CONNECT_ERR",
|
||||
"TCPIP_EV_DRIVER", "TCPIP_EV_USER"};
|
||||
if (ev != MG_TCPIP_EV_POLL && ev < (int) (sizeof(names) / sizeof(names[0]))) {
|
||||
MG_PROF_ADD(c, names[ev]);
|
||||
"TCPIP_EV_DRIVER", "MG_TCPIP_EV_ST6_CHG",
|
||||
"TCPIP_EV_USER"};
|
||||
if (ev != MG_TCPIP_EV_TIMER_1S && ev < (int) (sizeof(names) / sizeof(names[0]))) {
|
||||
MG_PROF_ADD(ifp, names[ev]); // TODO(): call MG_PROF_DUMP() MG_PROF_FREE()
|
||||
}
|
||||
#endif
|
||||
// Fire protocol handler first, user handler second. See #2559
|
||||
|
||||
Reference in new issue
Block a user