Add rudimentary queue profiler

ETH IRQ and mip_poll() can both write to the queue, so if a memcpy() is interrupted we might see some weird records.
This commit is contained in:
Sergio R. Caprile committed 2022-09-07 17:14:03 -03:00
1 parent f4def36ccb
commit 313fddf722
5 files changed
+144

No files matched your search

+8
View File
@@ -1450,6 +1450,14 @@ struct mip_spi {
uint8_t (*txn)(void *, uint8_t); // SPI transaction: write 1 byte, read reply
};
#ifdef MIP_QPROFILE
enum {QP_IRQTRIGGERED=0, QP_FRAMEPUSHED, QP_FRAMEPOPPED, QP_FRAMEDONE, QP_FRAMEDROPPED, QP_QUEUEOVF};
void qp_mark(unsigned int type, int len);
void qp_log(void);
void qp_init(void);
#endif
#ifdef __cplusplus
}
#endif