• Home
  • Raw
  • Download

Lines Matching full:entry

108   createOrUpdateEntryIfNeeded(data, entry) {  argument
109 console.assert(entry.isolate, 'entry should have an isolate');
110 if (!(entry.isolate in data)) {
111 data[entry.isolate] = new Isolate(entry.isolate);
113 const data_object = data[entry.isolate];
114 if (('id' in entry) && !(entry.id in data_object.gcs)) {
115 data_object.gcs[entry.id] = {non_empty_instance_types: new Set()};
117 if ('time' in entry) {
118 if (data_object.end === null || data_object.end < entry.time) {
119 data_object.end = entry.time;
121 if (data_object.start === null || data_object.start > entry.time) {
122 data_object.start = entry.time;
127 createDatasetIfNeeded(data, entry, data_set) { argument
128 if (!(data_set in data[entry.isolate].gcs[entry.id])) {
129 data[entry.isolate].gcs[entry.id][data_set] = {
134 data[entry.isolate].data_sets.add(data_set);
148 addInstanceTypeData(data, isolate, gc_id, data_set, instance_type, entry) { argument
150 overall: entry.overall,
151 count: entry.count,
152 histogram: entry.histogram,
153 over_allocated: entry.over_allocated,
154 over_allocated_histogram: entry.over_allocated_histogram
156 data[isolate].gcs[gc_id][data_set].overall += entry.overall;
157 if (entry.overall !== 0) {
209 const entry = JSON.parse(string_entry);
210 this.createOrUpdateEntryIfNeeded(data, entry);
211 this.createDatasetIfNeeded(data, entry, data_set);
212 const isolate = entry.isolate;
213 const time = entry.time;
214 const gc_id = entry.id;
217 const field_data = entry.field_data;
224 entry.bucket_sizes;
226 entry.type_data)) {
234 console.log('Unable to parse data set entry', e);
258 for (var entry of contents) {
259 if (entry === null || entry.type === undefined) {
262 if (entry.type === 'zone') {
263 this.createOrUpdateEntryIfNeeded(data, entry);
264 const stacktrace = ('stacktrace' in entry) ? entry.stacktrace : [];
265 data[entry.isolate].samples.zone[entry.time] = {
266 allocated: entry.allocated,
267 pooled: entry.pooled,
271 entry.type === 'zonecreation' || entry.type === 'zonedestruction') {
272 this.createOrUpdateEntryIfNeeded(data, entry);
273 data[entry.isolate].zonetags.push(
274 Object.assign({opening: entry.type === 'zonecreation'}, entry));
275 } else if (entry.type === 'gc_descriptor') {
276 this.createOrUpdateEntryIfNeeded(data, entry);
277 data[entry.isolate].gcs[entry.id].time = entry.time;
278 if ('zone' in entry)
279 data[entry.isolate].gcs[entry.id].malloced = entry.zone;
280 } else if (entry.type === 'field_data') {
281 this.createOrUpdateEntryIfNeeded(data, entry);
282 this.createDatasetIfNeeded(data, entry, entry.key);
283 this.addFieldTypeData(data, entry.isolate, entry.id, entry.key,
284 entry.tagged_fields, entry.embedder_fields,
285 entry.unboxed_double_fields, entry.other_raw_fields);
286 } else if (entry.type === 'instance_type_data') {
287 if (entry.id in data[entry.isolate].gcs) {
288 this.createOrUpdateEntryIfNeeded(data, entry);
289 this.createDatasetIfNeeded(data, entry, entry.key);
291 data, entry.isolate, entry.id, entry.key,
292 entry.instance_type_name, entry);
294 } else if (entry.type === 'bucket_sizes') {
295 if (entry.id in data[entry.isolate].gcs) {
296 this.createOrUpdateEntryIfNeeded(data, entry);
297 this.createDatasetIfNeeded(data, entry, entry.key);
298 data[entry.isolate].gcs[entry.id][entry.key].bucket_sizes =
299 entry.sizes;
302 console.log('Unknown entry type: ' + entry.type);