Lines Matching refs:sym

136 		sym = symbol_entry();
165 sym.size = end - start;
166 sym.name = symbol_names.create(b.syms[i].name());
167 sym.sample.vma = b.syms[i].vma();
172 cverb << vdebug << hex << "Caller sym: "
180 sym = symbol_entry();
191 sym.size = bfdsym->size();
192 sym.name = symbol_names.create(bfdsym->name());
193 sym.sample.vma = bfdsym->vma();
198 cverb << vdebug << hex << "Callee sym: "
218 symbol_entry sym;
222 /// fill in the rest of the sym
224 sym.image_name = image;
225 sym.app_name = app;
226 symbol_entry const * self = pc.find(sym);
228 sym.sample.counts = self->sample.counts;
232 file_location & loc = sym.sample.file_loc;
304 void arc_recorder::process_children(cg_symbol & sym, double threshold)
307 symbol_entry self = sym;
312 sym.total_callee_count += self.sample.counts;
313 sym.callees.push_back(self);
315 sort(sym.callers.begin(), sym.callers.end(), compare_arc_count);
316 sort(sym.callees.begin(), sym.callees.end(), compare_arc_count_reverse);
320 cg_symbol::children::iterator cit = sym.callers.begin();
321 cg_symbol::children::iterator cend = sym.callers.end();
324 sym.total_caller_count[0]) < threshold)
328 sym.callers.erase(sym.callers.begin(), cit);
330 cit = sym.callees.begin();
331 cend = sym.callees.end();
334 sym.total_callee_count[0]) >= threshold)
338 sym.callees.erase(cit, sym.callees.end());
350 cg_symbol sym((*it).first);
354 if (op_ratio(sym.sample.counts[0], total[0]) < threshold)
358 if (!sym_filter.match(symbol_names.demangle(sym.name)))
367 sym.callers.push_back(csym);
368 sym.total_caller_count += cit->second;
376 sym.callees.push_back(csym);
377 sym.total_callee_count += cit->second;
380 process_children(sym, threshold);
382 // insert sym into cg_syms_objs
383 // then store pointer to sym in cg_syms
384 cg_syms.push_back(&(*cg_syms_objs.insert(cg_syms_objs.end(), sym)));
565 recorder.add(caller.sym, &callee.sym, arc_count);