diff --git a/0002-Handle-spaces-in-file-paths.patch b/0002-Handle-spaces-in-file-paths.patch new file mode 100644 index 0000000..7d8153f --- /dev/null +++ b/0002-Handle-spaces-in-file-paths.patch @@ -0,0 +1,22 @@ +From f80abee8ef1e9787565b7ed9906c142cc3cff4ce Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= +Date: Fri, 3 Nov 2017 23:23:43 +0100 +Subject: [PATCH] Handle spaces in file paths. + +--- + stackcollapse-perf.pl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl +index e91f7deb..468c67ab 100755 +--- a/stackcollapse-perf.pl ++++ b/stackcollapse-perf.pl +@@ -250,7 +250,7 @@ sub inline { + # + # stack line + # +- } elsif (/^\s*(\w+)\s*(.+) \((\S*)\)/) { ++ } elsif (/^\s*(\w+)\s*(.+) \((.*)\)/) { + # ignore filtered samples + next if not $pname; + diff --git a/flame.spec b/flame.spec index 2e7d05f..e231bd7 100644 --- a/flame.spec +++ b/flame.spec @@ -7,12 +7,13 @@ Name: flamegraph Version: 1.0 Summary: Stack trace visualizer -Release: 2 +Release: 3 License: CDDL-1.0 URL: http://www.brendangregg.com/flamegraphs.html Source0: https://github.com/brendangregg/FlameGraph/FlameGraph-%{commit}.tar.gz Patch1: 0001-minwidth-now-accepts-a-percentage-of-time-with-%.patch +Patch2: 0002-Handle-spaces-in-file-paths.patch BuildArch: noarch BuildRequires: help2man @@ -154,6 +155,9 @@ cp -p *.1 %{buildroot}%{_mandir}/man1 %{_mandir}/man1/stackcollapse-xdebug.php.1* %changelog +* Mon Apr 21 2025 maxin - 1.0-3 +- Handle spaces in file paths. + * Fri Apr 18 2025 maxin - 1.0-2 - minwidth now accepts a percentage of time with %