Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/spawn.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const proc = Bun.spawn(["bun", "--version"]);
await proc.exited;

const usage = proc.resourceUsage();
console.log(`Max memory used: ${usage.maxRSS} bytes`);
console.log(`Max memory used: ${usage.maxRSS} KB`);
console.log(`CPU time (user): ${usage.cpuTime.user} µs`);
console.log(`CPU time (system): ${usage.cpuTime.system} µs`);
```
Expand Down
2 changes: 1 addition & 1 deletion packages/bun-types/bun.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6770,7 +6770,7 @@ declare module "bun" {
total: number;
};
/**
* The maximum amount of resident set size (in bytes) used by the process during its lifetime.
* The maximum amount of resident set size (in kilobytes) used by the process during its lifetime.
*/
maxRSS: number;

Expand Down
Loading