| 278 | } |
| 279 | |
| 280 | static void InitResult(Result& outResult) |
| 281 | { |
| 282 | outResult.TotalTime = duration::zero(); |
| 283 | outResult.AllocationTimeMin = duration::max(); |
| 284 | outResult.AllocationTimeAvg = duration::zero(); |
| 285 | outResult.AllocationTimeMax = duration::min(); |
| 286 | outResult.DeallocationTimeMin = duration::max(); |
| 287 | outResult.DeallocationTimeAvg = duration::zero(); |
| 288 | outResult.DeallocationTimeMax = duration::min(); |
| 289 | outResult.TotalMemoryAllocated = 0; |
| 290 | outResult.FreeRangeSizeAvg = 0; |
| 291 | outResult.FreeRangeSizeMax = 0; |
| 292 | } |
| 293 | |
| 294 | class TimeRegisterObj |
| 295 | { |