cosmopolitan/libc/log
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
..
thunks Make improvements 2022-05-12 06:45:36 -07:00
addr2linepath.c Polish recent changes and make improvements 2022-03-19 03:37:00 -07:00
appendresourcereport.c Make improvements 2022-04-28 09:57:07 -07:00
attachdebugger.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
backtrace.internal.h Release redbean 1.5 2021-11-15 07:39:38 -08:00
backtrace2.greg.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
backtrace3.greg.c Make improvements 2022-04-24 10:06:05 -07:00
bsd.h Add chibicc 2020-12-06 16:20:21 -08:00
check.h Make improvements 2022-05-12 06:45:36 -07:00
checkaligned.c Make improvements 2022-05-12 06:45:36 -07:00
checkfail.c Make improvements 2022-04-24 10:06:05 -07:00
checkfail_ndebug.c Make improvements 2022-05-12 06:45:36 -07:00
color.internal.h Make exciting improvements 2022-03-18 03:02:00 -07:00
commandvenv.c Make improvements 2022-04-28 09:57:07 -07:00
countbranch.h Make exciting improvements 2022-03-18 03:02:00 -07:00
countbranch_data.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
countbranch_report.c Make exciting improvements 2022-03-18 03:02:00 -07:00
countexpr.h Make exciting improvements 2022-03-18 03:02:00 -07:00
countexpr_data.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
countexpr_report.c Make improvements 2022-04-24 10:06:05 -07:00
cxaprintexits.c Improve memory safety 2021-10-13 17:27:13 -07:00
die.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
err.c Change license 2020-12-27 17:18:44 -08:00
errx.c Change license 2020-12-27 17:18:44 -08:00
flogf.c Change license 2020-12-27 17:18:44 -08:00
gdb.h Make improvements 2022-03-16 13:40:10 -07:00
gdbexec.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
gdbpath.c Change license 2020-12-27 17:18:44 -08:00
gdbsync.c Change license 2020-12-27 17:18:44 -08:00
getcallername.c Improve memory safety 2021-10-13 17:27:13 -07:00
getsicodename.c Improve signals and memory protection 2022-04-12 22:11:00 -07:00
getsymbolbyaddr.c Improve memory safety 2021-10-13 17:27:13 -07:00
getttycols.c Change license 2020-12-27 17:18:44 -08:00
getttysize.c Make exciting improvements 2022-03-18 03:02:00 -07:00
internal.h Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
leaks.c Improve redbean 2022-04-25 08:30:14 -07:00
libfatal.internal.h Polish recent changes and make improvements 2022-03-19 03:37:00 -07:00
log.h Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
log.mk Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
logerrno.c Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
logfile.initabi.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
loglevel.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
malloc_stats.c Improve synchronization 2022-04-15 15:31:55 -07:00
meminfo.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
memsummary.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
oncrash.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
oncrashthunks.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
onkill.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
perror.c Make minor improvements 2021-05-15 21:53:26 -07:00
printgarbage.c Make improvements 2022-04-24 10:06:05 -07:00
printgarbagenumeric.c Fix regression in _gclongjmp() 2021-08-19 09:34:24 -07:00
restoretty.greg.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
showcrashreports.c Get threads working on all platforms 2022-05-13 03:59:09 -07:00
startfatal.c Add syscalls to Blinkenlights and fix bugs 2022-05-13 13:31:21 -07:00
traceme.c Undiamond Python headers 2021-08-12 14:07:40 -07:00
traceme.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
verr.c Add syscalls to Blinkenlights and fix bugs 2022-05-13 13:31:21 -07:00
verrx.c Change license 2020-12-27 17:18:44 -08:00
vflogf.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
vwarn.c Change license 2020-12-27 17:18:44 -08:00
vwarnx.c Change license 2020-12-27 17:18:44 -08:00
warn.c Change license 2020-12-27 17:18:44 -08:00
warnx.c Change license 2020-12-27 17:18:44 -08:00