lambda r: r.count, thresholds['symbol'])
self.reference_dict = dict([ (r.name, r) for r in self.references ])
- def annotate(self, report, conn):
+ def annotate(self, report, conn, options):
fn_re = re.compile('^[0-9a-f]+\s+<[^>]+>: /\* (\S+) total:')
symbols = [ s for s in self.references if s.name != '(no symbols)' ]
if not symbols:
return
- command = ['opannotate', '--source', '--assembly',
+ command = [options.opannotate, '--source', '--assembly',
'--include-file=' + self.name,
'-i', ','.join([ s.name for s in symbols ])]
for binary in self.binaries:
binary.threshold(thresholds)
- def annotate(self, conn):
+ def annotate(self, conn, options):
for binary in self.binaries:
- binary.annotate(self, conn)
+ binary.annotate(self, conn, options)
@staticmethod
def parse(doc, hostname):
return report
@staticmethod
- def extract(connection):
- fd = connection.execute(['opreport', '--xml'])
+ def extract(connection, options):
+ fd = connection.execute([options.opreport, '--xml'])
doc = parseXML(fd)
if connection.host: