idlemem

command
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command idlemem launches apps and reports how much memory each takes once idle, alone and with the processes it runs, its webview's: scripts/bench.ts measures release builds of examples/hello and examples/counter-native with it on every push to main. It needs a desktop session.

go run ./internal/idlemem [-count 3] [-idle 6s] app...

Each app runs count times, for idle each time, and the medians print as JSON, by the name of the app's file: {"hello": {"app": bytes, "total": bytes}}. Memory is what each platform shows for a process:

  • macOS: the physical footprint, as Activity Monitor shows it, of the app and of the WebKit processes that started with it and share its responsible process (a terminal, say, for an app not in a bundle);
  • Linux: the proportional set size of the app and of its descendants, WebKitGTK's processes, so that pages they share count once;
  • Windows: the private working set, as Task Manager shows it, of the app and of its descendants, WebView2's processes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL