<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/pgo/full-inner.sh, branch sixel-heap-buffer-overflow</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=sixel-heap-buffer-overflow</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=sixel-heap-buffer-overflow'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2022-10-10T15:18:04Z</updated>
<entry>
<title>pgo: run xtgettcap without any arguments</title>
<updated>2022-10-10T15:18:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-10T15:18:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a9fc7ce1806d92779da9931c804a88ac444344ab'/>
<id>urn:sha1:a9fc7ce1806d92779da9931c804a88ac444344ab</id>
<content type='text'>
We execute xtgettcap in the parent terminal. Thus we don’t know if it
implements XTGETTCAP, and thus it’s not guaranteed to exit - it may
hang indefinitely waiting for a reply.

Fix by not actually quering anything.
</content>
</entry>
<entry>
<title>pgo: execute xtgettcap utility, to get profiling data</title>
<updated>2022-10-07T19:47:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-07T19:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=503740f8365aa67197a8ef6f710852b5caec362c'/>
<id>urn:sha1:503740f8365aa67197a8ef6f710852b5caec362c</id>
<content type='text'>
Fixes:

  ../utils/xtgettcap.c:175:1: error: ‘/home/daniel/src/foot/src/utils/xtgettcap.p/xtgettcap.c.gcda’ profile count data file not found [-Werror=missing-profile]
</content>
</entry>
<entry>
<title>pgo: full-inner: add --override tweak.grapheme-shaping=no</title>
<updated>2021-10-16T14:58:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-16T14:58:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d4b365b55c98ab1cccc2c08677ced04cd5438327'/>
<id>urn:sha1:d4b365b55c98ab1cccc2c08677ced04cd5438327</id>
<content type='text'>
Grapheme shaping is now enabled by default in foot. However, when
generating the profiling data in PGO builds, this results in skewed
optimizations.

The end result is worse benchmark results regardless of whether
grapheme-shaping is enabled or not (when running the benchmarks).
</content>
</entry>
<entry>
<title>pgo: full-inner: do not set LC_CTYPE=en_US.UTF-8</title>
<updated>2021-10-02T12:46:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-02T12:43:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9389f337d0f75bcdeaf95cbfc9c8525db0e2007b'/>
<id>urn:sha1:9389f337d0f75bcdeaf95cbfc9c8525db0e2007b</id>
<content type='text'>
That locale may not exist. Instead, require the user/build script to
explicitly set an UTF-8 locale.

Document this in INSTALL.md, and in the bundled PKGBUILD.
</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-inner: quote path in trap’s “rm” command</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:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3a34b94f2e8dadf845889bec2fa8cea5f89665d3'/>
<id>urn:sha1:3a34b94f2e8dadf845889bec2fa8cea5f89665d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: full-inner: remove -o tweak.render-timer=log</title>
<updated>2021-09-12T08:39:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T08:55:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=aeb510182b32c342a9175045aed37f5e1023384e'/>
<id>urn:sha1:aeb510182b32c342a9175045aed37f5e1023384e</id>
<content type='text'>
</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>
