[MM-60086][MM-60610] Implement performanceMonitor, collect CPU/memory usage data and send via API (#3165)
* [MM-60086][MM-60610] Implement performanceMonitor, collect CPU/memory usage data and send via API * Translations * PR feedback * Update api-types package
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
TAB_BAR_HEIGHT,
|
||||
} from 'common/utils/constants';
|
||||
import downloadsManager from 'main/downloadsManager';
|
||||
import performanceMonitor from 'main/performanceMonitor';
|
||||
import {getLocalPreload} from 'main/utils';
|
||||
import MainWindow from 'main/windows/mainWindow';
|
||||
|
||||
@@ -75,6 +76,7 @@ export class DownloadsDropdownMenuView {
|
||||
// @ts-ignore
|
||||
transparent: true,
|
||||
}});
|
||||
performanceMonitor.registerView('DownloadsDropdownMenuView', this.view.webContents);
|
||||
this.view.webContents.loadURL('mattermost-desktop://renderer/downloadsDropdownMenu.html');
|
||||
MainWindow.get()?.addBrowserView(this.view);
|
||||
};
|
||||
|
Reference in New Issue
Block a user