code: def persist_perf(run, session, svg_path):
      
      from benchbuild.utils import schema as s
  
      with open(svg_path, 'r') as svg_file:
          svg_data = svg_file.read()
          session.add(
              s.Metadata(name="perf.flamegraph", value=svg_data, run_id=run.id))
docs: Persist the flamegraph in the database.
  
      The flamegraph exists as a SVG image on disk until we persist it in the
      database.
  
      Args:
          run: The run we attach these perf measurements to.
          session: The db transaction we belong to.
          svg_path: The path to the SVG file we want to store.