Skip to content

Commit 7b3e7cb

Browse files
authored
runtime: add note for the availability of the used_memory implementation (#24913)
1 parent 8605599 commit 7b3e7cb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module runtime
22

33
// used_memory retrieves the current physical memory usage of the process.
4+
// Note: implementation available only on macOS, Linux and Windows. Otherwise,
5+
// returns 'used_memory: not implemented'.
46
pub fn used_memory() !u64 {
5-
return error('`used_memory()` not implemented')
7+
return error('used_memory: not implemented')
68
}

0 commit comments

Comments
 (0)