cosmopolitan/test/libc/runtime
Justine Tunney 80b211e314 Add raw memory visualization tool to redbean
This change introduces a `-W /dev/pts/1` flag to redbean. What it does
is use the mincore() system call to create a dual-screen terminal
display that lets you troubleshoot the virtual address space. This is
useful since page faults are an important thing to consider when using a
forking web server. Now we have a colorful visualization of which pages
are going to fault and which ones are resident in memory.

The memory monitor, if enabled, spawns as a thread that just outputs
ANSI codes to the second terminal in a loop. In order to make this
happen using the new clone() polyfill, stdio is now thread safe.

This change also introduces some new demo pages to redbean. It also
polishes the demos we already have, to look a bit nicer and more
presentable for the upcoming release, with better explanations too.
2022-05-14 04:33:58 -07:00
..
arch_prctl_test.c Change license 2020-12-27 17:18:44 -08:00
clone_test.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
fork_test.c Make improvements 2022-04-28 09:57:07 -07:00
getdosargv_test.c Make improvements 2022-04-28 09:57:07 -07:00
getdosenviron_test.c Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
grow_test.c Make numerous improvements 2021-09-28 01:52:34 -07:00
itsatrap_test.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
memtrack_test.c Make improvements 2022-04-24 10:06:05 -07:00
mmap_test.c Make improvements 2022-05-12 06:45:36 -07:00
mprotect_test.c Make improvements 2022-04-24 10:06:05 -07:00
test.mk Apply fixes and speedups 2021-10-04 03:23:31 -07:00