Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
Error.stackTraceLimit = Infinity;
const assert = require("node-opcua-assert").assert;
const _ = require("underscore");
const chalk = require("chalk");
const ObjectRegistry = require("node-opcua-object-registry").ObjectRegistry;
ObjectRegistry.doDebug = true;
const trace = false;
//trace = true;
function get_stack() {
const stack = (new Error("Stack Trace recording")).stack.split("\n");
return stack.slice(2, 7).join("\n");
}
const monitor_intervals = false;
function ResourceLeakDetector() {
const self = this;
self.setIntervalCallCount = 0;