<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/pgo/pgo.sh, branch 1.17.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.17.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.17.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2024-02-06T11:36:45Z</updated>
<entry>
<title>Don't use fancy Unicode quotes, stick to ASCII</title>
<updated>2024-02-06T11:36:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-02-06T11:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7999975016a57cc0a2c2e20bc55f29de32df7044'/>
<id>urn:sha1:7999975016a57cc0a2c2e20bc55f29de32df7044</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add CCACHE_DISABLE=1 to pgo.sh to avoid errors when ccache is enabled</title>
<updated>2023-10-20T09:06:05Z</updated>
<author>
<name>Fazzi</name>
<email>faaris.ansari@proton.me</email>
</author>
<published>2023-10-20T09:06:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=85a4e4ccc15089b58ad8ce4aaec3b301e9025369'/>
<id>urn:sha1:85a4e4ccc15089b58ad8ce4aaec3b301e9025369</id>
<content type='text'>
</content>
</entry>
<entry>
<title>build: fix GCC detection in pgo.sh</title>
<updated>2022-10-23T21:56:34Z</updated>
<author>
<name>Andrea Pappacoda</name>
<email>andrea@pappacoda.it</email>
</author>
<published>2022-10-23T21:56:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1313e6352a442bfd7483f7b6e14308f2cabdc684'/>
<id>urn:sha1:1313e6352a442bfd7483f7b6e14308f2cabdc684</id>
<content type='text'>
On my system, GCC doesn't output its name when passing the --version
flag:

    $ cc --version
    cc (Debian 12.2.0-3) 12.2.0
    Copyright (C) 2022 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

As the Free Software Foundation is unlikely to write another compiler, I
think that searching for the foundation's name instead of GCC is a good
enough fix (and I'm almost sure we wouldn't be the first ones to do so).
</content>
</entry>
<entry>
<title>pgo: verify source dir really is a foot source dir before proceeding</title>
<updated>2021-10-06T18:10:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-06T18:10:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b1c03861cd2faae597c36de73b068519c328a634'/>
<id>urn:sha1:b1c03861cd2faae597c36de73b068519c328a634</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo.sh: set -x *after* verifying input</title>
<updated>2021-09-12T14:11:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-12T14:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b6df5f6456f4e4a897cb30f814c7d85254efbc8a'/>
<id>urn:sha1:b6df5f6456f4e4a897cb30f814c7d85254efbc8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: pgo.sh: remove both gcc and clang generated profile stats</title>
<updated>2021-09-12T08:39:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T16:50:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5493267bf7ca08527e563717b4bf7812388f79f5'/>
<id>urn:sha1:5493267bf7ca08527e563717b4bf7812388f79f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: pgo.sh: add meson bld/src dir arguments last</title>
<updated>2021-09-12T08:39:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T16:41:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a941253ba74d5ca48cbb1401b4ced8d0fa2b6a1e'/>
<id>urn:sha1:a941253ba74d5ca48cbb1401b4ced8d0fa2b6a1e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: pgo.sh: run ‘find’ in the build-directory, not cwd</title>
<updated>2021-09-12T08:39:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T16:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6d67c2b4ab3194df40d383841fb95bcc2f033fa1'/>
<id>urn:sha1:6d67c2b4ab3194df40d383841fb95bcc2f033fa1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: pgo.sh: allow a pre-existing build directory</title>
<updated>2021-09-12T08:39:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T16:29:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e907ec209cf9b3e2f7ef06e0ffd71b9735f1e702'/>
<id>urn:sha1:e907ec209cf9b3e2f7ef06e0ffd71b9735f1e702</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: pgo.sh: auto: don’t use full-headless-sway</title>
<updated>2021-09-12T08:39:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T16:17:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cf7c5050f64709bea48e3175a3218f7b74d19f36'/>
<id>urn:sha1:cf7c5050f64709bea48e3175a3218f7b74d19f36</id>
<content type='text'>
This requires Sway &gt;= 1.6.2, which hasn’t been released yet. Thus,
don’t auto-use it.

Users can still request it explicitly.
</content>
</entry>
<entry>
<title>pgo: add set -x to all PGO scripts</title>
<updated>2021-09-12T08:39:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T09:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=99c4e51e199f87c0b4d97d43a2d34af62c6b7ae4'/>
<id>urn:sha1:99c4e51e199f87c0b4d97d43a2d34af62c6b7ae4</id>
<content type='text'>
Without this, debugging error reports from users is going to be _very_
difficult...
</content>
</entry>
<entry>
<title>pgo: full-headless-cage: new headless variant</title>
<updated>2021-09-12T08:39:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T09:04:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=801bce335be8c3cf6d3793a50c2dfcf2ada29f19'/>
<id>urn:sha1:801bce335be8c3cf6d3793a50c2dfcf2ada29f19</id>
<content type='text'>
Appears to work, but cage spams a lot of

 00:00:08.026 [types/wlr_output.c:720] Basic output test failed for HEADLESS-1
 00:00:08.036 [types/wlr_output.c:720] Basic output test failed for HEADLESS-1
</content>
</entry>
<entry>
<title>pgo: replace meson-pgo.sh with several script primitives</title>
<updated>2021-09-12T08:39:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T08:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a43ae0d098da2b0a5d77b6ecbc578f6d14b22d55'/>
<id>urn:sha1:a43ae0d098da2b0a5d77b6ecbc578f6d14b22d55</id>
<content type='text'>
All scripts are in the ‘pgo’ directory:

* options: command line options for generate-alt-random-writes.py,
  sourced by other scripts.

* pgo.sh: top-level script, generates a meson build directory, selects
  a PGO method, generates the profiling data, re-configures the meson
  build directory and does the final build.

  This script is intended to be used by end-users, and shows _how_ to
  integrate the script primitives.

  Build servers will most likely *not* want to use this script as-is.

* partial.sh: generates alt-random-write data and runs “foot{,client}
  --version”, and then feeds the alt-random data to the PGO helper
  binary. Does not require a running Wayland session. Touches
  $blddir/pgo-ok on success.

* full-inner.sh: runs “footclient --version”, and then a complex
  “foot” command that first generates alt-random-write data, and then
  “cat’s” it. Requires a running Wayland session, *but*, this script
  is usually not called directly (see below). Touches $blddir/pgo-ok
  onsucces..

* full-current-session.sh: runs full-inner.sh. That is, it runs foot
  in the currently running Wayland session. Note that this will pop up a
  foot window.

* full-headless-sway.sh: generates a custom Sway configuration that
  exec’s foot-headless-sway-inner.sh (see below), and then executes a
  headless Sway. In other words, this script does a *full* PGO build,
  but *without* requiring a running Wayland session. Requires Sway &gt;=
  1.6.2.

* full-headless-sway.sh: runs full-inner.sh + “swaymsg exit”.

To do a custom PGO build, without using pgo.sh, you’d need to:

CFLAGS=”$CFLAGS -O3” meson --buildtype=release -Db_lto=true
meson configure -Db_pgo=generate
ninja
ninja test (only needed if tllist+fcft are built as subprojects)

Run *one* of:
  - partial.sh
  - full-current-session.sh
  - full-headless-sway.sh

meson configure -D b_pgo=use
ninja
</content>
</entry>
</feed>
