add allocation to statistics */
| 127 | |
| 128 | /* add allocation to statistics */ |
| 129 | void inc_count(size_t inc) |
| 130 | { |
| 131 | stats.current += inc; |
| 132 | stats.total += inc; |
| 133 | if(stats.current > stats.peak) { |
| 134 | stats.peak = stats.current; |
| 135 | } |
| 136 | ++stats.count; |
| 137 | |
| 138 | if(userCallback) { |
| 139 | userCallback(stats.current); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /* decrement allocation to statistics */ |
| 144 | void dec_count(size_t dec) |
no outgoing calls
no test coverage detected