entriesByCategory[category].forEach(function(entry) { if (entry.resource.startTime == -1 || entry.resource.endTime == -1) return;  if (earliestStart === undefined) earliestStart = entry.resource.startTime; else earliestStart = Math.min(earliestStart, entry.resource.startTime);  if (latestEnd === undefined) latestEnd = entry.resource.endTime; else latestEnd = Math.max(latestEnd, entry.resource.endTime);  if (entry.resource.startTime <= segment.end) { segment.end = Math.max(segment.end, entry.resource.endTime); return; }  categoryValues[category] += segment.end - segment.start;  segment.start = entry.resource.startTime; segment.end = entry.resource.endTime; }); 
var percents = segments.map(function(s) { return Math.max(Math.round(100 * s.value / total), 1) }); 
            entriesByCategory[category].forEach(function(entry) {                if (entry.resource.startTime == -1 || entry.resource.endTime == -1)                    return;                if (earliestStart === undefined)                    earliestStart = entry.resource.startTime;                else                    earliestStart = Math.min(earliestStart, entry.resource.startTime);                if (latestEnd === undefined)                    latestEnd = entry.resource.endTime;                else                    latestEnd = Math.max(latestEnd, entry.resource.endTime);                if (entry.resource.startTime <= segment.end) {                    segment.end = Math.max(segment.end, entry.resource.endTime);                    return;                }                categoryValues[category] += segment.end - segment.start;                segment.start = entry.resource.startTime;                segment.end = entry.resource.endTime;            });
1725	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1725/7d2aaa248e316cf8ee6c9d6ae9c057e355c7c994/NetworkPanel.js/clean/WebCore/page/inspector/NetworkPanel.js