| 486 | } |
| 487 | |
| 488 | void |
| 489 | Http2CommonSession::_count_received_frames(uint32_t type) |
| 490 | { |
| 491 | if (type > HTTP2_FRAME_TYPE_MAX) { |
| 492 | type = HTTP2_FRAME_TYPE_MAX; |
| 493 | } |
| 494 | // Global counter |
| 495 | Metrics::Counter::increment(http2_frame_metrics_in[type]); |
| 496 | // Local counter |
| 497 | this->_frame_counts_in[type]++; |
| 498 | } |
no test coverage detected