mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
Add irq and drop counters to qprofiler
This commit is contained in:
1 parent
a4c27618b4
commit
995f90aa49
4 files changed
+46
-10
No files matched your search
+10
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user