mirror of
https://github.com/koush/scrypted.git
synced 2026-02-17 04:02:14 +00:00
server: track result leaks
This commit is contained in:
@@ -88,8 +88,10 @@ export class PluginComponent {
|
||||
const packageJson = await this.getPackageJson(pluginId);
|
||||
const host = this.scrypted.plugins[pluginId];
|
||||
let rpcObjects = 0;
|
||||
let pendingResults = 0;
|
||||
if (host.peer) {
|
||||
rpcObjects = host.peer.localProxied.size + Object.keys(host.peer.remoteWeakProxies).length;
|
||||
pendingResults = Object.keys(host.peer.pendingResults).length;
|
||||
}
|
||||
return {
|
||||
pid: host?.worker?.pid,
|
||||
|
||||
Reference in New Issue
Block a user