rem: if (!(entry.resource.category in entriesByCategory)) entriesByCategory[entry.resource.category] = []; entriesByCategory[entry.resource.category].push(entry); 
add: if (!(entry.resource.category.name in entriesByCategory)) entriesByCategory[entry.resource.category.name] = []; entriesByCategory[entry.resource.category.name].push(entry); 
context:     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};    },
meta: 5650	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5650/81abc84dcf5f8eaa2dfbd11f9563bb8fc5f4c630/NetworkPanel.js/buggy/WebCore/page/inspector/NetworkPanel.js