mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-05 01:55:21 +03:00
purge: Add a small command-line utility for purging all volatile memory
This commit is contained in:
parent
dbb644f20c
commit
dfc5eb2b6d
Notes:
sideshowbarker
2024-07-19 10:54:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dfc5eb2b6d9
9
Userland/purge.cpp
Normal file
9
Userland/purge.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
int purged_page_count = syscall(SC_purge);
|
||||
printf("Purged page count: %d\n", purged_page_count);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user