if (!(entry.resource.category in entriesByCategory)) entriesByCategory[entry.resource.category] = []; entriesByCategory[entry.resource.category].push(entry); 
if (!(entry.resource.category.name in entriesByCategory)) entriesByCategory[entry.resource.category.name] = []; entriesByCategory[entry.resource.category.name].push(entry); 
    computeValues: function(entries)    {        var entriesByCategory = {};        entries.forEach(function(entry) {            if (!(entry.resource.category in entriesByCategory))                entriesByCategory[entry.resource.category] = [];            entriesByCategory[entry.resource.category].push(entry);        });        var earliestStart;        var latestEnd;        var categoryValues = {};        for (var category in entriesByCategory) {            entriesByCategory[category].sort(WebInspector.NetworkPanel.timelineEntryCompare);            categoryValues[category] = 0;            var segment = {start: -1, end: -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;            });            // Add the last segment            categoryValues[category] += segment.end - segment.start;        }        return {categoryValues: categoryValues, total: latestEnd - earliestStart};    },
1725	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1725/11650fd39ffebe23630ae00304720f3195cfabd4/NetworkPanel.js/clean/WebCore/page/inspector/NetworkPanel.js