Name: gprof2dot
Version: 1.0
Release: 0.2.20090901svn%{?dist}
Summary: Generate dot graphs from the output of several profilers
Group: Applications/Multimedia
License: LGPLv3+
URL: http://code.google.com/p/jrfonseca/wiki/Gprof2Dot
# The Source0 used in this version of the package can be obtained by:
# svn export -r 276 http://jrfonseca.googlecode.com/svn/trunk/gprof2dot/ gprof2dot-1.0
# tar -cf - gprof2dot-1.0 |xz -9c --memory=500MiB > gprof2dot-1.0.tar.xz
Source0: gprof2dot-1.0.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python
BuildRequires: graphviz
Requires: python
%description
This is a Python script to convert the output from prof, gprof, oprofile,
Shark, AQtime, and python profilers into a dot graph. It has the following
features:
* can correctly parse C++ template function names
* allows to prune nodes and edges below a certain threshold
* uses an heuristic to propagate time inside mutually recursive functions
* uses color efficiently to draw attention to hot-spots
%prep
%setup -q
sed -i '1s@^#!/usr/bin/env python$@#!/usr/bin/python@' gprof2dot.py
cd tests
sed -i 's/^PYTHON=python2.5$/PYTHON=python/' runtests.sh
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -p -m 0755 gprof2dot.py %{buildroot}%{_bindir}/gprof2dot
chmod 0644 hotshotmain.py
%clean
rm -rf %{buildroot}
%check
cd tests
./runtests.sh
%files
%defattr(-,root,root,-)
%doc hotshotmain.py
%{_bindir}/gprof2dot
%changelog
* Mon Sep 14 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.2.20090901svn
- Use svn export instead of svn checkout to generate the tarball
- Replace use of env with direct call to the python interpreter
* Tue Sep 1 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.1.20090901svn
- Initial Fedora build