Add irq and drop counters to qprofiler

This commit is contained in:
Sergio R. Caprile committed 2022-09-09 14:47:46 -03:00
1 parent a4c27618b4
commit 995f90aa49
4 files changed
+46 -10

No files matched your search

+10 -2
View File
@@ -1456,10 +1456,18 @@ struct mip_spi {
};
#ifdef MIP_QPROFILE
enum {QP_IRQTRIGGERED=0, QP_FRAMEPUSHED, QP_FRAMEPOPPED, QP_FRAMEDONE, QP_FRAMEDROPPED, QP_QUEUEOVF};
enum { // payload is frame length unless otherwise noted
QP_IRQTRIGGERED = 0, // payload is number of interrupts so far
QP_FRAMEPUSHED,
QP_FRAMEPOPPED,
QP_FRAMEDONE,
QP_FRAMEDROPPED,
QP_QUEUEOVF // profiling queue is full, payload is number of frame drops so
// far
};
void qp_mark(unsigned int type, int len);
void qp_log(void);
void qp_log(void); // timestamp, type, payload
void qp_init(void);
#endif