Skip to content

feat(server): add get-process-memory without changing sys-info - #23

Open
Ashura006 wants to merge 7 commits into
Pumpkin-MC:masterfrom
Ashura006:feat/sys-info-process-memory
Open

feat(server): add get-process-memory without changing sys-info#23
Ashura006 wants to merge 7 commits into
Pumpkin-MC:masterfrom
Ashura006:feat/sys-info-process-memory

Conversation

@Ashura006

@Ashura006 Ashura006 commented Jul 26, 2026

Copy link
Copy Markdown

Description

Adds get-process-memory on the server resource, returning the Pumpkin process RSS in bytes when the plugin has sys.info or sys.info.ram.

sys-info is intentionally left unchanged. Extending that record in v0.1 would break already-built plugins at component instantiate time, because WIT records are not currently extensible.

Testing

WIT-only additive change (new method). Host implementation is in the companion Pumpkin PR.

aure31 and others added 6 commits June 27, 2026 20:57
Expose the Pumpkin process resident set size alongside the existing
system-wide memory fields so plugins can report server RAM usage
without reading host-wide used memory.
Keep the existing sys-info record layout stable for already-built v0.1
plugins. Expose process RSS through a new server method instead, so old
components do not fail type-checking at instantiate time.
@Ashura006

Copy link
Copy Markdown
Author

Updated after review feedback on the Pumpkin PR: instead of extending the sys-info record (breaking for existing v0.1 plugin binaries), this now adds get-process-memory on server and leaves sys-info untouched.

@Ashura006 Ashura006 changed the title feat(server): add process-memory to sys-info feat(server): add get-process-memory without changing sys-info Jul 26, 2026
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.

2 participants