This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
cosmopolitan
Watch
1
Star
0
Fork
You've already forked cosmopolitan
0
mirror of
https://github.com/jart/cosmopolitan.git
synced
2025-02-07 23:13:34 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
1
2b73e72d59
cosmopolitan
/
libc
/
sysv
/
calls
/
sys_mincore.S
3 lines
90 B
ArmAsm
Raw
Normal View
History
Unescape
Escape
Make more code aarch64 friendly
2023-05-02 20:38:16 +00:00
#
include
"
l
i
b
c
/
s
y
s
v
/
m
a
c
r
o
s
.
i
n
t
e
r
n
a
l
.
h
"
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 11:33:58 +00:00
.scall
sys
_
m
i
n
c
o
r
e
,
0
x04
e
0
4
e
0
4
e
2
0
4
e
0
1
b
,
g
l
o
b
l
,
h
i
d
d
e
n
Reference in a new issue
Copy permalink