Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Server Memory Stats" debug verb #3300

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Sep 10, 2024

About The Pull Request

Cleaned up the code for SSmemory_stats a bit, and added a new verb, "Server Memory Stats", that prints the memory summary to your chat. Only usable with +DEBUG perms, tho.

2024-09-09 (1725927030) ~ dreamseeker

Also, made it so that OpenDream won't bother compiling SSmemory_stats at all - and the subsystem will disable firing during init if it's either not on Windows, or if memorystats.dll doesn't exist.

Running the verb on OpenDream will just return "Memory statistics not supported on OpenDream, sorry!"

Changelog

🆑
admin: Added a debug verb for admins to output the server's current memory usage summary to their chat.
/:cl:

@Absolucy Absolucy merged commit 6704a10 into Monkestation:master Sep 11, 2024
24 checks passed
@Absolucy Absolucy deleted the debug-mem-tools branch September 11, 2024 10:20
github-actions bot added a commit that referenced this pull request Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant