Lines Matching refs:cg
254 def deviceMatch(self, pid, cg): argument
255 if cg.end - cg.start == 0:
263 if cg.name == 'do_one_initcall':
264 if(cg.start <= dev['start'] and cg.end >= dev['end'] and dev['length'] > 0):
265 dev['ftrace'] = cg
269 if(cg.start > dev['start'] and cg.end < dev['end']):
272 dev['ftraces'].append(cg)
425 cg = ftemp[key][-1]
426 res = cg.addLine(t)
437 for cg in ftemp[key]:
438 if len(cg.list) < 1 or cg.invalid or (cg.end - cg.start == 0):
440 if(not cg.postProcess()):
444 devname = data.deviceMatch(pid, cg)
447 if cg.partial:
450 (kind, cg.name, proc, pid, cg.start, cg.end))
451 elif len(cg.list) > 1000000:
453 (devname, len(cg.list)))
499 def cgOverview(cg, minlen): argument
502 for l in cg.list:
592 cg = dev['ftrace']
593 large, stats = cgOverview(cg, 0.001)
605 for cg in dev['ftraces']:
606 left = '%f' % (((cg.start-t0)*100)/tTotal)
607 width = '%f' % ((cg.end-cg.start)*100/tTotal)
608 cglen = (cg.end - cg.start) * 1000.0
609 title = '%s (%0.3fms)' % (cg.name, cglen)
610 cg.id = 'x%d' % num
611 devtl.html += html_srccall.format(cg.name, left,
612 top, height, width, title, dev['id']+cg.id)