cosmopolitan/libc/time
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
..
struct Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00
alarm.c Make numerous improvements 2021-09-28 01:52:34 -07:00
asctime.c Make improvements 2022-04-27 05:39:39 -07:00
clockstonanos.internal.h Improve locks and signals 2022-04-12 05:20:17 -07:00
ctime.c Make improvements 2022-04-27 05:39:39 -07:00
ctime_r.c Make improvements 2022-04-27 05:39:39 -07:00
difftime.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
dsleep.c Make signal handling work well across platforms 2022-03-25 07:28:57 -07:00
futimens.c Change license 2020-12-27 17:18:44 -08:00
futimes.c Change license 2020-12-27 17:18:44 -08:00
futimesat.c Change license 2020-12-27 17:18:44 -08:00
iso8601.c Make redbean tinier 2021-07-04 12:26:54 -07:00
kmonthname.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
kmonthnameshort.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
kweekdayname.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
kweekdaynameshort.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
localtime.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
strftime.c Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00
strptime.c Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00
time.h Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00
time.mk Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00
times.c Change noinline to dontinline (#312) 2021-11-12 15:12:18 -08:00
timezone.c Make improvements 2022-04-28 09:57:07 -07:00
tz.internal.h Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
tzfile.internal.h Make improvements 2022-04-27 05:39:39 -07:00
xiso8601.c Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00