Skip to content

Commit

Permalink
Profiling tools. Add toolfile for Google perftools profiler library. …
Browse files Browse the repository at this point in the history
…Update libunwind and gpertools version to latest. Build igprof with internal debug messages enabled by env var.
  • Loading branch information
gartung committed Apr 28, 2021
1 parent c3bfc15 commit 01721d2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
13 changes: 12 additions & 1 deletion gperftools-toolfile.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external gperftools-toolfile 1.0
### RPM external gperftools-toolfile 2.0

Requires: gperftools

Expand Down Expand Up @@ -29,4 +29,15 @@ cat << \EOF_TOOLFILE >%{i}/etc/scram.d/tcmalloc.xml
</tool>
EOF_TOOLFILE

cat << \EOF_TOOLFILE >%{i}/etc/scram.d/gperf.xml
<tool name="gperf" version="@TOOL_VERSION@">
<lib name="profiler"/>
<client>
<environment name="GPERF_BASE" default="@TOOL_ROOT"/>
<environment name="LIBDIR" default="$GPERF_BASE/lib"/>
</client>
<runtime name="PATH" value="$GPERF_BASE/bin" type="path"/>
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
2 changes: 1 addition & 1 deletion gperftools.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external gperftools 2.7
### RPM external gperftools 2.9.1
Source: https://github.com/gperftools/gperftools/archive/gperftools-%{realversion}.tar.gz

BuildRequires: autotools
Expand Down
2 changes: 1 addition & 1 deletion igprof.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cmake ../igprof-%{git_commit} \
-DCMAKE_INSTALL_PREFIX=%i -DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3" \
-DCMAKE_PREFIX_PATH="$LIBUNWIND_ROOT;$PCRE_ROOT"
make %makeprocesses
make DEBUG=1 VERBOSE=1 %makeprocesses

%install
cd ../build
Expand Down
6 changes: 3 additions & 3 deletions libunwind.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### RPM external libunwind 1.4.0
%define tag 9a055a43bfc955658f88d21cf66386bfdd982c94
%define branch v1.4-stable
### RPM external libunwind 1.5
%define tag 4c980e2b29cdb9d21cfc341abdec3a6ee46e0483
%define branch v1.5-stable
Source0: git://github.com/%{n}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
BuildRequires: autotools gmake

Expand Down

0 comments on commit 01721d2

Please sign in to comment.