Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Electrom is a resource management solution for Electron applications, which is convenient for performance management and friendly debugging of multiple windows.

Notifications You must be signed in to change notification settings

electron-modules/electrom

Repository files navigation

electrom

NPM version CI Test coverage node version npm download

Electrom is a resource management solution for Electron applications, which is convenient for performance management and friendly debugging of multiple windows.

Contributors


xudafeng


yantze


z0gSh1u


sriting


snapre


WynterDing

This project follows the git-contributor spec, auto updated at Thu Jun 05 2025 11:33:16 GMT+0800.

Installment

npm i electrom --save-dev

How to use

Please visit the demo code

// main process: import electrom
import {
 EVENT_DATA_CHANNEL_NAME,
 BROWSER_WINDOW_PRELOAD_PATH,
 Monitor,
} from 'electrom';
const monitor = new Monitor();
/**
 * Please set this script's path as `webPreferences.preload` of `BrowserWindow`.
 * {
 * preload: BROWSER_WINDOW_PRELOAD_PATH
 * }
 */
mainWindow.webContents.on('dom-ready', () => {
 monitor.on(EVENT_DATA_CHANNEL_NAME, (data: any) => {
 mainWindow.webContents.send(EVENT_DATA_CHANNEL_NAME, data);
 });
 monitor.bindEventToWindow(mainWindow);
 monitor.start();
});

Perf Board

You can use the Perf-Board standalone in your front-end.

import React from 'react';
import PerfBoard from 'electrom/src/PerfBoard';
function() {
 return (
 <PerfBoard />
 );
}

TODO

  • heapdump

License

The MIT License (MIT)

About

Electrom is a resource management solution for Electron applications, which is convenient for performance management and friendly debugging of multiple windows.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

AltStyle によって変換されたページ (->オリジナル) /