Created
June 18, 2021 09:36
-
-
Save antonagestam/9806d723ed694a3feef781d280ecf89b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import signal | |
import resource | |
def debug(signum, frame): | |
print(f"RSS: {resource.getrusage(resource.RUSAGE_SELF).ru_maxrss}") | |
print(f"{resource.getpagesize()=}") | |
signal.signal(signal.SIGINFO, debug) | |
while True: | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment