From 4cae83bb70b45916063b280289b81a87d0387ba4 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Tue, 28 Apr 2015 20:54:01 +0200 Subject: [PATCH] gprof2dot: Add new package gprof2dot is a Python script to convert the output from many profilers into a dot graph. --- .../tools/profiling/gprof2dot/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/tools/profiling/gprof2dot/default.nix diff --git a/pkgs/development/tools/profiling/gprof2dot/default.nix b/pkgs/development/tools/profiling/gprof2dot/default.nix new file mode 100644 index 000000000000..38315116eeb7 --- /dev/null +++ b/pkgs/development/tools/profiling/gprof2dot/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchFromGitHub, pythonPackages }: + +pythonPackages.buildPythonPackage { + name = "gprof2dot-2015-04-27"; + + src = fetchFromGitHub { + owner = "jrfonseca"; + repo = "gprof2dot"; + rev = "6fbb81559609c12e7c64ae5dce7d102a414a7514"; + sha256 = "1fff7w6dm6lld11hp2ij97f85ma1154h62dvchq19c5jja3zjw3c"; + }; + + meta = with stdenv.lib; { + homepage = "https://github.com/jrfonseca/gprof2dot"; + description = "Python script to convert the output from many profilers into a dot graph"; + license = licenses.lgpl3Plus; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 332811bcafe0..166847e6b026 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1553,6 +1553,11 @@ let grails = callPackage ../development/web/grails { jdk = null; }; + gprof2dot = callPackage ../development/tools/profiling/gprof2dot { + # Using pypy provides significant performance improvements (~2x) + pythonPackages = pypyPackages; + }; + graphviz = callPackage ../tools/graphics/graphviz { }; graphviz-nox = callPackage ../tools/graphics/graphviz {