Sisyphus repositório
Última atualização: 13 agosto 2022 | SRPMs: 17596 | Visitas: 24770385
en ru br
ALT Linux repositórios

Group :: Sistema/Servidores
RPM: php7-xhprof

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define php_extension xhprof
Name: php%_php_suffix-%php_extension
Version: 2.3.3
Epoch: 1
Release: alt3.%_php_release_version

Summary: PHP hierarchical profiler

License: %asl
Group: System/Servers

Packager: Nikolay A. Fetisov <naf at>

Source0: %php_extension-%version.tar
Source1: php-%php_extension.ini
Source3: %php_extension.conf

BuildRequires(pre): rpm-build-php7-version rpm-build-licenses rpm-macros-webserver-common
BuildRequires: php-devel = %php_version

XHProf is a function-level hierarchical profiler for PHP and
has a simple HTML based navigational interface.
The raw data collection component is implemented in C (as a
PHP extension). The reporting/UI layer is all in PHP.
It is capable of reporting function-level inclusive and
exclusive wall times, memory usage, CPU times and number
of calls for each function. Additionally, it supports ability
to compare two runs (hierarchical DIFF reports), or aggregate
results from
multiple runs.

%setup -n %php_extension-%version
cp %SOURCE3 %php_extension.conf

pushd extension/

BUILD_HAVE=`echo %php_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
export LDFLAGS=-lphp-%_php_version

%configure \
--with-%php_extension \
--with-libdir=%_lib \
--enable-zmq \


pushd extension/
install -D -m 644 -- %SOURCE1 %buildroot/%php_extconf/%php_extension/config
install -D -m 644 -- %SOURCE2 %buildroot/%php_extconf/%php_extension/params

mkdir -p %buildroot%webserver_webappsdir
cp -a xhprof_html %buildroot%webserver_webappsdir
cp -a xhprof_lib  %buildroot%webserver_webappsdir
sed -e 's|DIRECTORY|%webserver_webappsdir/xhprof_html|g' -i %php_extension.conf

%doc examples/sample.php scripts/xhprofile.php
%doc xhprof.conf






Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009