[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">
|
---|
[751dd1e] | 9 | <!ENTITY sysprof-md5sum "e96168b2fa18462f40871513fe4228b5">
|
---|
| 10 | <!ENTITY sysprof-size "484 KB">
|
---|
| 11 | <!ENTITY sysprof-buildsize "21 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 | <sect1info>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Sysprof-&sysprof-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="sysprof">
|
---|
| 26 | <primary sortas="a-sysprof">sysprof</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Sysprof</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>sysprof</application> package contains a statistical and
|
---|
| 34 | system-wide profiler for Linux.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[519aed4] | 37 | &lfs111_checked;
|
---|
[3d3560c5] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&sysprof-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&sysprof-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &sysprof-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &sysprof-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &sysprof-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &sysprof-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">Sysprof Dependencies</bridgehead>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 76 | <para role="required">
|
---|
| 77 | <xref linkend="gtk3"/>,
|
---|
[b3bcb7de] | 78 | <xref linkend="json-glib"/>,
|
---|
[751dd1e] | 79 | <xref linkend="libunwind"/>,
|
---|
[3d3560c5] | 80 | <xref linkend="libdazzle"/>, <phrase revision="systemd">and</phrase>
|
---|
| 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 |
|
---|
[b7e2ce4] | 101 | meson --prefix=/usr --buildtype=release -Dsystemdunitdir=/tmp .. &&
|
---|
[3d3560c5] | 102 | ninja</userinput></screen>
|
---|
| 103 |
|
---|
| 104 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 105 | cd build &&
|
---|
| 106 |
|
---|
| 107 | meson --prefix=/usr .. &&
|
---|
| 108 | ninja</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | To test the results, issue: <command>ninja test</command>.
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen role="root" revision="sysv"><userinput>ninja install &&
|
---|
| 119 | rm -v /tmp/*.service</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2 role="commands" revision="sysv">
|
---|
| 126 | <title>Command Explanations</title>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | <command>rm -v /tmp/*.service</command>: This command removes
|
---|
| 130 | systemd units which have no use on SysV systems.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | <parameter>-Dsystemdunitdir=/tmp</parameter>: This parameter puts systemd
|
---|
| 135 | units in /tmp on SysV systems so that they can be removed. It also bypasses
|
---|
| 136 | a check for systemd <!-- for sd-bus --> in the meson.build file.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2 role="content">
|
---|
| 142 | <title>Contents</title>
|
---|
| 143 |
|
---|
| 144 | <segmentedlist>
|
---|
| 145 | <segtitle>Installed Programs</segtitle>
|
---|
| 146 | <segtitle>Installed Libraries</segtitle>
|
---|
| 147 | <segtitle>Installed Directories</segtitle>
|
---|
| 148 |
|
---|
| 149 | <seglistitem>
|
---|
| 150 | <seg>
|
---|
| 151 | sysprof and sysprof-cli
|
---|
| 152 | </seg>
|
---|
| 153 | <seg>
|
---|
| 154 | libsysprof-4.so,
|
---|
| 155 | libsysprof-capture-4.a, <!-- is required -->
|
---|
| 156 | libsysprof-memory-4.so,
|
---|
| 157 | libsysprof-speedtrack-4.so, and
|
---|
| 158 | libsysprof-ui-4.so
|
---|
| 159 | </seg>
|
---|
| 160 | <seg>
|
---|
| 161 | /usr/include/sysprof-4 and
|
---|
| 162 | /usr/share/help/*/sysprof
|
---|
| 163 | </seg>
|
---|
| 164 | </seglistitem>
|
---|
| 165 | </segmentedlist>
|
---|
| 166 |
|
---|
| 167 | <variablelist>
|
---|
| 168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 169 | <?dbfo list-presentation="list"?>
|
---|
| 170 | <?dbhtml list-presentation="table"?>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="sysprof-prog">
|
---|
| 173 | <term><command>sysprof</command></term>
|
---|
| 174 | <listitem>
|
---|
| 175 | <para>
|
---|
[4c24eb0a] | 176 | is a graphical interface to sysprof
|
---|
[3d3560c5] | 177 | </para>
|
---|
| 178 | <indexterm zone="sysprof sysprof-prog">
|
---|
| 179 | <primary sortas="b-sysprof">sysprof</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="sysprof-cli">
|
---|
| 185 | <term><command>sysprof-cli</command></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>
|
---|
[4c24eb0a] | 188 | is a command line interface to sysprof
|
---|
[3d3560c5] | 189 | </para>
|
---|
| 190 | <indexterm zone="sysprof sysprof-cli">
|
---|
| 191 | <primary sortas="b-sysprof-cli">sysprof-cli</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="libsysprof-4">
|
---|
| 197 | <term><filename class="libraryfile">libsysprof-4.so</filename></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>
|
---|
[4c24eb0a] | 200 | provides API functions for profiling processes running on a system
|
---|
[3d3560c5] | 201 | </para>
|
---|
| 202 | <indexterm zone="sysprof libsysprof-4">
|
---|
| 203 | <primary sortas="c-libsysprof">libsysprof-4.so</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <!-- static library is required for capture stats from a process -->
|
---|
| 209 | <varlistentry id="libsysprof-capture-4">
|
---|
| 210 | <term><filename class="libraryfile">libsysprof-capture-4.a</filename></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>
|
---|
[4c24eb0a] | 213 | provides a hook used to capture statistics from a process
|
---|
[3d3560c5] | 214 | </para>
|
---|
| 215 | <indexterm zone="sysprof libsysprof-capture-4">
|
---|
| 216 | <primary sortas="c-libsysprof-capture">libsysprof-capture-4.a</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="libsysprof-memory-4">
|
---|
| 222 | <term><filename class="libraryfile">libsysprof-memory-4.so</filename></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>
|
---|
[4c24eb0a] | 225 | provides API functions for capturing memory statistics
|
---|
[3d3560c5] | 226 | </para>
|
---|
| 227 | <indexterm zone="sysprof libsysprof-memory-4">
|
---|
| 228 | <primary sortas="c-libsysprof-memory">libsysprof-memory-4.so</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
[8558044] | 232 |
|
---|
[3d3560c5] | 233 | <varlistentry id="libsysprof-speedtrack-4">
|
---|
| 234 | <term><filename class="libraryfile">libsysprof-speedtrack-4.so</filename></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>
|
---|
[4c24eb0a] | 237 | provides API functions for tracking the speed of a running process
|
---|
[3d3560c5] | 238 | </para>
|
---|
| 239 | <indexterm zone="sysprof libsysprof-speedtrack-4">
|
---|
| 240 | <primary sortas="c-libsysprof-speedtrack">libsysprof-speedtrack-4.so</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="libsysprof-ui-4">
|
---|
| 246 | <term><filename class="libraryfile">libsysprof-ui-4.so</filename></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>
|
---|
[4c24eb0a] | 249 | provides API functions for the sysprof GUI
|
---|
[3d3560c5] | 250 | </para>
|
---|
| 251 | <indexterm zone="sysprof libsysprof-ui-4">
|
---|
| 252 | <primary sortas="c-libsysprof-ui">libsysprof-ui-4.so</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 | </variablelist>
|
---|
| 257 | </sect2>
|
---|
[4c24eb0a] | 258 |
|
---|
[3d3560c5] | 259 | </sect1>
|
---|