Py-gprof2dot

Jul 20, 2023

Generate a dot graph from the output of several profilers

gprof2dot is a Python script to convert the output from many profilers into a dot graph.

It can

  • read output from
    • Linux perf
    • Valgrind’s callgrind tool
    • oprofile
    • sysprof
    • xperf
    • VTune Amplifier XE
    • Very Sleepy
    • python profilers
    • Java’s HPROF
    • prof, gprof
    • DTrace
  • prune nodes and edges below a certain threshold;
  • use an heuristic to propagate time inside mutually recursive functions;
  • use color efficiently to draw attention to hot-spots;
  • work on any platform where Python and Graphviz is available, i.e, virtually anywhere.


Checkout these related ports:
  • Zphoto - Zooming photo album generator
  • Zint - Barcode generator (library and utilities)
  • Zimg - Image-generator that uses ASCII input files to create PNGs/EDFs
  • Zgv - Graphics viewer for SVGAlib
  • Zbar - ZBar barcode reader
  • Zathura - Customizable lightweight pdf viewer
  • Zathura-ps - PostScript support for Zathura PDF viewer
  • Zathura-pdf-poppler - Poppler render PDF plugin for Zathura PDF viewer
  • Zathura-pdf-mupdf - MuPDF render PDF plugin for Zathura PDF viewer
  • Zathura-djvu - DjVu support for zathura
  • Zathura-cb - Comic book plugin for Zathura PDF viewer
  • Yukon - Real-time capture tool for OpenGL applications
  • Yed - Editor for graphs and diagrams
  • Yafaray - Montecarlo raytracing engine
  • Yacreader - Yet another comic reader