[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 |
|
---|
[0942224] | 37 | &lfs112_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">
|
---|
[00eb94a] | 77 | <xref linkend="desktop-file-utils"/>,
|
---|
[3d3560c5] | 78 | <xref linkend="gtk3"/>,
|
---|
[0f30bb17] | 79 | <xref linkend="itstool"/>,
|
---|
[b3bcb7de] | 80 | <xref linkend="json-glib"/>,
|
---|
[751dd1e] | 81 | <xref linkend="libunwind"/>,
|
---|
[3d3560c5] | 82 | <xref linkend="libdazzle"/>, <phrase revision="systemd">and</phrase>
|
---|
| 83 | <xref linkend="polkit"/> <phrase revision="sysv">, and</phrase>
|
---|
| 84 | <phrase revision="sysv"><xref linkend="elogind"/></phrase>
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <para condition="html" role="usernotes">
|
---|
| 88 | User Notes: <ulink url="&blfs-wiki;/sysprof"/>
|
---|
| 89 | </para>
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 role="installation">
|
---|
| 93 | <title>Installation of Sysprof</title>
|
---|
| 94 |
|
---|
| 95 | <para>
|
---|
| 96 | Install <application>Sysprof</application> by running the following
|
---|
| 97 | commands:
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
| 101 | cd build &&
|
---|
| 102 |
|
---|
[b7e2ce4] | 103 | meson --prefix=/usr --buildtype=release -Dsystemdunitdir=/tmp .. &&
|
---|
[3d3560c5] | 104 | ninja</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 107 | cd build &&
|
---|
| 108 |
|
---|
| 109 | meson --prefix=/usr .. &&
|
---|
| 110 | ninja</userinput></screen>
|
---|
| 111 |
|
---|
| 112 | <para>
|
---|
| 113 | To test the results, issue: <command>ninja test</command>.
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
| 116 | <para>
|
---|
| 117 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <screen role="root" revision="sysv"><userinput>ninja install &&
|
---|
| 121 | rm -v /tmp/*.service</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | <screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands" revision="sysv">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | <command>rm -v /tmp/*.service</command>: This command removes
|
---|
| 132 | systemd units which have no use on SysV systems.
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <para>
|
---|
| 136 | <parameter>-Dsystemdunitdir=/tmp</parameter>: This parameter puts systemd
|
---|
| 137 | units in /tmp on SysV systems so that they can be removed. It also bypasses
|
---|
| 138 | a check for systemd <!-- for sd-bus --> in the meson.build file.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
| 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directories</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
| 152 | <seg>
|
---|
| 153 | sysprof and sysprof-cli
|
---|
| 154 | </seg>
|
---|
| 155 | <seg>
|
---|
| 156 | libsysprof-4.so,
|
---|
| 157 | libsysprof-capture-4.a, <!-- is required -->
|
---|
| 158 | libsysprof-memory-4.so,
|
---|
| 159 | libsysprof-speedtrack-4.so, and
|
---|
| 160 | libsysprof-ui-4.so
|
---|
| 161 | </seg>
|
---|
| 162 | <seg>
|
---|
| 163 | /usr/include/sysprof-4 and
|
---|
| 164 | /usr/share/help/*/sysprof
|
---|
| 165 | </seg>
|
---|
| 166 | </seglistitem>
|
---|
| 167 | </segmentedlist>
|
---|
| 168 |
|
---|
| 169 | <variablelist>
|
---|
| 170 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 171 | <?dbfo list-presentation="list"?>
|
---|
| 172 | <?dbhtml list-presentation="table"?>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="sysprof-prog">
|
---|
| 175 | <term><command>sysprof</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>
|
---|
[4c24eb0a] | 178 | is a graphical interface to sysprof
|
---|
[3d3560c5] | 179 | </para>
|
---|
| 180 | <indexterm zone="sysprof sysprof-prog">
|
---|
| 181 | <primary sortas="b-sysprof">sysprof</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="sysprof-cli">
|
---|
| 187 | <term><command>sysprof-cli</command></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>
|
---|
[4c24eb0a] | 190 | is a command line interface to sysprof
|
---|
[3d3560c5] | 191 | </para>
|
---|
| 192 | <indexterm zone="sysprof sysprof-cli">
|
---|
| 193 | <primary sortas="b-sysprof-cli">sysprof-cli</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | <varlistentry id="libsysprof-4">
|
---|
| 199 | <term><filename class="libraryfile">libsysprof-4.so</filename></term>
|
---|
| 200 | <listitem>
|
---|
| 201 | <para>
|
---|
[4c24eb0a] | 202 | provides API functions for profiling processes running on a system
|
---|
[3d3560c5] | 203 | </para>
|
---|
| 204 | <indexterm zone="sysprof libsysprof-4">
|
---|
| 205 | <primary sortas="c-libsysprof">libsysprof-4.so</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <!-- static library is required for capture stats from a process -->
|
---|
| 211 | <varlistentry id="libsysprof-capture-4">
|
---|
| 212 | <term><filename class="libraryfile">libsysprof-capture-4.a</filename></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>
|
---|
[4c24eb0a] | 215 | provides a hook used to capture statistics from a process
|
---|
[3d3560c5] | 216 | </para>
|
---|
| 217 | <indexterm zone="sysprof libsysprof-capture-4">
|
---|
| 218 | <primary sortas="c-libsysprof-capture">libsysprof-capture-4.a</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry id="libsysprof-memory-4">
|
---|
| 224 | <term><filename class="libraryfile">libsysprof-memory-4.so</filename></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>
|
---|
[4c24eb0a] | 227 | provides API functions for capturing memory statistics
|
---|
[3d3560c5] | 228 | </para>
|
---|
| 229 | <indexterm zone="sysprof libsysprof-memory-4">
|
---|
| 230 | <primary sortas="c-libsysprof-memory">libsysprof-memory-4.so</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
[8558044] | 234 |
|
---|
[3d3560c5] | 235 | <varlistentry id="libsysprof-speedtrack-4">
|
---|
| 236 | <term><filename class="libraryfile">libsysprof-speedtrack-4.so</filename></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>
|
---|
[4c24eb0a] | 239 | provides API functions for tracking the speed of a running process
|
---|
[3d3560c5] | 240 | </para>
|
---|
| 241 | <indexterm zone="sysprof libsysprof-speedtrack-4">
|
---|
| 242 | <primary sortas="c-libsysprof-speedtrack">libsysprof-speedtrack-4.so</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | <varlistentry id="libsysprof-ui-4">
|
---|
| 248 | <term><filename class="libraryfile">libsysprof-ui-4.so</filename></term>
|
---|
| 249 | <listitem>
|
---|
| 250 | <para>
|
---|
[4c24eb0a] | 251 | provides API functions for the sysprof GUI
|
---|
[3d3560c5] | 252 | </para>
|
---|
| 253 | <indexterm zone="sysprof libsysprof-ui-4">
|
---|
| 254 | <primary sortas="c-libsysprof-ui">libsysprof-ui-4.so</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 | </variablelist>
|
---|
| 259 | </sect2>
|
---|
[4c24eb0a] | 260 |
|
---|
[3d3560c5] | 261 | </sect1>
|
---|