You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.9 KiB
56 lines
1.9 KiB
15 years ago
|
Summary: KDE Profiling Visualisation Tool
|
||
13 years ago
|
Name: tdecachegrind
|
||
|
Version: @TDECACHEGRIND_VERSION@
|
||
15 years ago
|
Release: 1
|
||
|
Copyright: GPL
|
||
|
Group: Development/Tools
|
||
|
Vendor: (none)
|
||
13 years ago
|
URL: http://tdecachegrind.sourceforge.net
|
||
15 years ago
|
Packager: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
|
||
13 years ago
|
Source: tdecachegrind-@TDECACHEGRIND_VERSION@.tar.gz
|
||
15 years ago
|
BuildRoot: /var/tmp/build
|
||
|
|
||
|
%description
|
||
|
KCachegrind is a GPL'd tool for quick browsing in and visualisation
|
||
|
of performance data of an application run. This data is produced by
|
||
|
profiling tools and typically includes distribution of cost events
|
||
|
to source code ranges (instructions, source lines, functions, C++ classes)
|
||
|
and call relationship of functions.
|
||
|
KCachegrind has a list of functions sorted according to different cost
|
||
|
types, and can provide various performance views for a function like
|
||
|
direct/indirect callers/callees, TreeMap visualisation of cost distribution
|
||
|
among callees, call graph sectors centered around the function and
|
||
|
annotated source/assembler.
|
||
|
Currently, KCachegrind depends on data delivered by the profiling tool
|
||
|
calltree, powered by the Valgrind runtime instrumentation framework.
|
||
|
|
||
|
%prep
|
||
|
%setup
|
||
|
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
|
||
|
\
|
||
|
$LOCALFLAGS
|
||
|
%build
|
||
|
# Setup for parallel builds
|
||
|
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
|
||
|
if [ "$numprocs" = "0" ]; then
|
||
|
numprocs=1
|
||
|
fi
|
||
|
|
||
|
make -j$numprocs
|
||
|
|
||
|
%install
|
||
|
make install-strip DESTDIR=$RPM_BUILD_ROOT
|
||
|
|
||
|
cd $RPM_BUILD_ROOT
|
||
13 years ago
|
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.tdecachegrind
|
||
|
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.tdecachegrind
|
||
|
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.tdecachegrind
|
||
15 years ago
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT/*
|
||
13 years ago
|
rm -rf $RPM_BUILD_DIR/tdecachegrind
|
||
|
rm -rf ../file.list.tdecachegrind
|
||
15 years ago
|
|
||
|
|
||
13 years ago
|
%files -f ../file.list.tdecachegrind
|