/** * INTERNAL: * Initialize TopLink noun tree by default (DMSConsole.getSensorWeight()) */ public void initialize() { weight = DMSConsole.NONE; initializeNounTree(DMSConsole.getSensorWeight()); weight = DMSConsole.getSensorWeight(); }
/** * INTERNAL: * Initialize TopLink noun tree by default (DMSConsole.getSensorWeight()) */ public void initialize() { weight = DMSConsole.NONE; initializeNounTree(DMSConsole.getSensorWeight()); weight = DMSConsole.getSensorWeight(); }
/** * PUBLIC: * Create a new dms profiler. * The profiler can be registered with a session to log performance information. */ public DMSPerformanceProfiler(Session session) { this.session = (AbstractSession)session; this.normalWeightNouns = new Hashtable<String, Noun>(1); this.heavyWeightNouns = new Hashtable<String, Noun>(5); this.allWeightNouns = new Hashtable<String, Noun>(1); this.normalWeightSensors = new Hashtable<String, Sensor>(4); this.heavyWeightSensors = new Hashtable<String, Sensor>(); this.allWeightSensors = new Hashtable<String, Sensor>(22); this.normalAndHeavyWeightSensors = new Hashtable<String, Sensor>(); this.normalHeavyAndAllWeightSensors = new Hashtable<String, Sensor>(); this.operationStartTokenThreadLocal = new ThreadLocal(); this.weight = DMSConsole.getSensorWeight(); if (!isDMSSpyInitialized) { isDMSSpyInitialized = true; initSpy(); } }
/** * PUBLIC: * Create a new dms profiler. * The profiler can be registered with a session to log performance information. */ public DMSPerformanceProfiler(Session session) { this.session = (AbstractSession)session; this.normalWeightNouns = new Hashtable<String, Noun>(1); this.heavyWeightNouns = new Hashtable<String, Noun>(5); this.allWeightNouns = new Hashtable<String, Noun>(1); this.normalWeightSensors = new Hashtable<String, Sensor>(4); this.heavyWeightSensors = new Hashtable<String, Sensor>(); this.allWeightSensors = new Hashtable<String, Sensor>(22); this.normalAndHeavyWeightSensors = new Hashtable<String, Sensor>(); this.normalHeavyAndAllWeightSensors = new Hashtable<String, Sensor>(); this.operationStartTokenThreadLocal = new ThreadLocal(); this.weight = DMSConsole.getSensorWeight(); if (!isDMSSpyInitialized) { isDMSSpyInitialized = true; initSpy(); } }