def graph_data(self, run_id): run = request.db.get_run(run_id) try: return stats.generate_call_graph(run.stats) except: LOG.exception('could not generate image') raise
def render(self): image_data = stats.generate_call_graph(self.stats_data) with open(self.image_filename, 'w') as f: f.write(image_data) return super(CallGraphPage, self).render()