[3d3560c5] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[6e4f58e] | 7 | <!ENTITY sysprof-download-http "&gnome-download-http;/sysprof/&sysprof-minor;/sysprof-&sysprof-version;.tar.xz">
|
---|
| 8 | <!ENTITY sysprof-download-ftp "&gnome-download-ftp;/sysprof/&sysprof-minor;/sysprof-&sysprof-version;.tar.xz">
|
---|
[283db46d] | 9 | <!ENTITY sysprof-md5sum "ee1556063c7b8d9abd414f451b04c33a">
|
---|
| 10 | <!ENTITY sysprof-size "524 KB">
|
---|
| 11 | <!ENTITY sysprof-buildsize "27 MB">
|
---|
[3d3560c5] | 12 | <!ENTITY sysprof-time "0.1 SBU (using parallelism=4)">
|
---|
| 13 |
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="sysprof" xreflabel="sysprof-&sysprof-version;">
|
---|
| 17 | <?dbhtml filename="sysprof.html"?>
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | <title>Sysprof-&sysprof-version;</title>
|
---|
| 21 |
|
---|
| 22 | <indexterm zone="sysprof">
|
---|
| 23 | <primary sortas="a-sysprof">sysprof</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="package">
|
---|
| 27 | <title>Introduction to Sysprof</title>
|
---|
| 28 |
|
---|
| 29 | <para>
|
---|
| 30 | The <application>sysprof</application> package contains a statistical and
|
---|
| 31 | system-wide profiler for Linux.
|
---|
| 32 | </para>
|
---|
| 33 |
|
---|
[dc1a45e] | 34 | &lfs113_checked;
|
---|
[3d3560c5] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&sysprof-download-http;"/>
|
---|
| 41 | </para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&sysprof-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download MD5 sum: &sysprof-md5sum;
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download size: &sysprof-size;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Estimated disk space required: &sysprof-buildsize;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated build time: &sysprof-time;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">Sysprof Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
[00eb94a] | 74 | <xref linkend="desktop-file-utils"/>,
|
---|
[52c9cde6] | 75 | <xref linkend="gtk4"/>,
|
---|
[0f30bb17] | 76 | <xref linkend="itstool"/>,
|
---|
[b3bcb7de] | 77 | <xref linkend="json-glib"/>,
|
---|
[479c7fe] | 78 | <xref linkend="libadwaita1"/>,
|
---|
[52c9cde6] | 79 | <xref linkend="libdazzle"/>,
|
---|
| 80 | <xref linkend="libunwind"/>, <phrase revision="systemd">and</phrase>
|
---|
[3d3560c5] | 81 | <xref linkend="polkit"/> <phrase revision="sysv">, and</phrase>
|
---|
| 82 | <phrase revision="sysv"><xref linkend="elogind"/></phrase>
|
---|
| 83 | </para>
|
---|
| 84 |
|
---|
| 85 | <para condition="html" role="usernotes">
|
---|
| 86 | User Notes: <ulink url="&blfs-wiki;/sysprof"/>
|
---|
| 87 | </para>
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 role="installation">
|
---|
| 91 | <title>Installation of Sysprof</title>
|
---|
| 92 |
|
---|
| 93 | <para>
|
---|
| 94 | Install <application>Sysprof</application> by running the following
|
---|
| 95 | commands:
|
---|
| 96 | </para>
|
---|
| 97 |
|
---|
| 98 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
| 99 | cd build &&
|
---|
| 100 |
|
---|
[91318eb] | 101 | meson setup --prefix=/usr \
|
---|
| 102 | --buildtype=release \
|
---|
| 103 | -Dsystemdunitdir=/tmp \
|
---|
| 104 | .. &&
|
---|
[3d3560c5] | 105 | ninja</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 108 | cd build &&
|
---|
| 109 |
|
---|
[91318eb] | 110 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[3d3560c5] | 111 | ninja</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | <para>
|
---|
| 114 | To test the results, issue: <command>ninja test</command>.
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <para>
|
---|
| 118 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <screen role="root" revision="sysv"><userinput>ninja install &&
|
---|
| 122 | rm -v /tmp/*.service</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="commands" revision="sysv">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | <command>rm -v /tmp/*.service</command>: This command removes
|
---|
| 133 | systemd units which have no use on SysV systems.
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <para>
|
---|
| 137 | <parameter>-Dsystemdunitdir=/tmp</parameter>: This parameter puts systemd
|
---|
| 138 | units in /tmp on SysV systems so that they can be removed. It also bypasses
|
---|
| 139 | a check for systemd <!-- for sd-bus --> in the meson.build file.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Programs</segtitle>
|
---|
| 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
| 153 | <seg>
|
---|
[52c9cde6] | 154 | sysprof,
|
---|
| 155 | sysprof-agent, and
|
---|
| 156 | sysprof-cli
|
---|
[3d3560c5] | 157 | </seg>
|
---|
| 158 | <seg>
|
---|
| 159 | libsysprof-4.so,
|
---|
| 160 | libsysprof-capture-4.a, <!-- is required -->
|
---|
| 161 | libsysprof-memory-4.so,
|
---|
| 162 | libsysprof-speedtrack-4.so, and
|
---|
[52c9cde6] | 163 | libsysprof-ui-5.so
|
---|
[3d3560c5] | 164 | </seg>
|
---|
| 165 | <seg>
|
---|
[52c9cde6] | 166 | /usr/include/sysprof-4,
|
---|
| 167 | /usr/include/sysprof-ui-5, and
|
---|
[3d3560c5] | 168 | /usr/share/help/*/sysprof
|
---|
| 169 | </seg>
|
---|
| 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
| 172 |
|
---|
| 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="sysprof-prog">
|
---|
| 179 | <term><command>sysprof</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>
|
---|
[4c24eb0a] | 182 | is a graphical interface to sysprof
|
---|
[3d3560c5] | 183 | </para>
|
---|
| 184 | <indexterm zone="sysprof sysprof-prog">
|
---|
| 185 | <primary sortas="b-sysprof">sysprof</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
[52c9cde6] | 190 | <varlistentry id="sysprof-agent">
|
---|
| 191 | <term><command>sysprof-agent</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>
|
---|
| 194 | is used to profile applications in containers
|
---|
| 195 | </para>
|
---|
| 196 | <indexterm zone="sysprof sysprof-agent">
|
---|
| 197 | <primary sortas="b-sysprof-agent">sysprof-agent</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
[3d3560c5] | 202 | <varlistentry id="sysprof-cli">
|
---|
| 203 | <term><command>sysprof-cli</command></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>
|
---|
[4c24eb0a] | 206 | is a command line interface to sysprof
|
---|
[3d3560c5] | 207 | </para>
|
---|
| 208 | <indexterm zone="sysprof sysprof-cli">
|
---|
| 209 | <primary sortas="b-sysprof-cli">sysprof-cli</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="libsysprof-4">
|
---|
| 215 | <term><filename class="libraryfile">libsysprof-4.so</filename></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>
|
---|
[4c24eb0a] | 218 | provides API functions for profiling processes running on a system
|
---|
[3d3560c5] | 219 | </para>
|
---|
| 220 | <indexterm zone="sysprof libsysprof-4">
|
---|
| 221 | <primary sortas="c-libsysprof">libsysprof-4.so</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <!-- static library is required for capture stats from a process -->
|
---|
| 227 | <varlistentry id="libsysprof-capture-4">
|
---|
| 228 | <term><filename class="libraryfile">libsysprof-capture-4.a</filename></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>
|
---|
[4c24eb0a] | 231 | provides a hook used to capture statistics from a process
|
---|
[3d3560c5] | 232 | </para>
|
---|
| 233 | <indexterm zone="sysprof libsysprof-capture-4">
|
---|
| 234 | <primary sortas="c-libsysprof-capture">libsysprof-capture-4.a</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="libsysprof-memory-4">
|
---|
| 240 | <term><filename class="libraryfile">libsysprof-memory-4.so</filename></term>
|
---|
| 241 | <listitem>
|
---|
| 242 | <para>
|
---|
[4c24eb0a] | 243 | provides API functions for capturing memory statistics
|
---|
[3d3560c5] | 244 | </para>
|
---|
| 245 | <indexterm zone="sysprof libsysprof-memory-4">
|
---|
| 246 | <primary sortas="c-libsysprof-memory">libsysprof-memory-4.so</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
[8558044] | 250 |
|
---|
[3d3560c5] | 251 | <varlistentry id="libsysprof-speedtrack-4">
|
---|
| 252 | <term><filename class="libraryfile">libsysprof-speedtrack-4.so</filename></term>
|
---|
| 253 | <listitem>
|
---|
| 254 | <para>
|
---|
[4c24eb0a] | 255 | provides API functions for tracking the speed of a running process
|
---|
[3d3560c5] | 256 | </para>
|
---|
| 257 | <indexterm zone="sysprof libsysprof-speedtrack-4">
|
---|
| 258 | <primary sortas="c-libsysprof-speedtrack">libsysprof-speedtrack-4.so</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="libsysprof-ui-4">
|
---|
| 264 | <term><filename class="libraryfile">libsysprof-ui-4.so</filename></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>
|
---|
[4c24eb0a] | 267 | provides API functions for the sysprof GUI
|
---|
[3d3560c5] | 268 | </para>
|
---|
| 269 | <indexterm zone="sysprof libsysprof-ui-4">
|
---|
| 270 | <primary sortas="c-libsysprof-ui">libsysprof-ui-4.so</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 | </variablelist>
|
---|
| 275 | </sect2>
|
---|
[4c24eb0a] | 276 |
|
---|
[3d3560c5] | 277 | </sect1>
|
---|