Method will make mistake when ranges don't have intersection
| 207 | |
| 208 | // Method will make mistake when ranges don't have intersection |
| 209 | static TimeRange UnionTimeRanges(const TimeRange& range, const TimeRange& otherRange) { |
| 210 | TimeRange unionRange; |
| 211 | unionRange.start = range.start < otherRange.start ? range.start : otherRange.start; |
| 212 | unionRange.end = range.end > otherRange.end ? range.end : otherRange.end; |
| 213 | return unionRange; |
| 214 | } |
| 215 | |
| 216 | void MemoryCalculator::UpdateTimeRangesMapIfNeed( |
| 217 | void* resource, TimeRange timeRange, |
no outgoing calls
no test coverage detected