New subpackage profiling

This commit is contained in:
2025-11-07 11:50:13 +01:00
parent 179f7e291d
commit e4dc67aaa9
2 changed files with 28 additions and 1 deletions

View File

@@ -362,6 +362,29 @@ Provides: python3-dbm
An easy to use interface for Unix DBM databases, and more specifically,
the GNU implementation GDBM.
%package -n %{python_pkg_name}-profiling
Summary: Python Statistical Sampling Profiler
Requires: %{python_pkg_name} = %{version}
%obsolete_python_versioned profiling
%if %{primary_interpreter}
Provides: python3-profiling
%endif
%description -n %{python_pkg_name}-profiling
Statistical sampling profiler as profiling.sampling. This
profiler enables low-overhead performance analysis of running
Python processes without requiring code modification or process
restart.
Unlike deterministic profilers (cProfile and profile) that
instrument every function call, the sampling profiler
periodically captures stack traces from running processes.
This approach provides virtually zero overhead while achieving
sampling rates of up to 1,000,000 Hz, making it the fastest
sampling profiler available for Python (at the time of its
contribution) and ideal for debugging performance issues in
production environments.
%package -n %{python_pkg_name}-idle
Summary: An Integrated Development Environment for Python
Requires: %{python_pkg_name} = %{version}
@@ -799,7 +822,7 @@ install -d -m 755 %{buildroot}%{sitedir}/site-packages/__pycache__
mkdir -p %{buildroot}%{_prefix}/lib/python%{python_abi}/site-packages/__pycache__
# cleanup parts that don't belong
for dir in curses dbm sqlite3 tkinter idlelib; do
for dir in curses dbm sqlite3 tkinter idlelib profiling; do
find "%{buildroot}/%{sitedir}/$dir"/* -maxdepth 0 -name "test" -o -exec rm -rf {} +
done
@@ -941,6 +964,9 @@ fi
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/*/apps
%files -n %{python_pkg_name}-profiling
%{sitedir}/profiling
# endif for if general
%endif