================== SCR_DrawMemoryUsage ================== */
| 247 | ================== |
| 248 | */ |
| 249 | float SCR_DrawMemoryUsage( float y ) { |
| 250 | memoryStats_t allocs, frees; |
| 251 | |
| 252 | Mem_GetStats( allocs ); |
| 253 | SCR_DrawTextRightAlign( y, "total allocated memory: %4d, %4lldkB", allocs.num, allocs.totalSize>>10 ); |
| 254 | |
| 255 | Mem_GetFrameStats( allocs, frees ); |
| 256 | SCR_DrawTextRightAlign( y, "frame alloc: %4d, %4lldkB frame free: %4d, %4lldkB", allocs.num, allocs.totalSize>>10, frees.num, frees.totalSize>>10 ); |
| 257 | |
| 258 | Mem_ClearFrameStats(); |
| 259 | |
| 260 | return y; |
| 261 | } |
| 262 | |
| 263 | /* |
| 264 | ================== |
no test coverage detected