/** * Return the DMS sensor weight * @return */ public int getProfileWeight() { if (getSession().isInProfile()) { return getSession().getProfiler().getProfileWeight(); } else { return 0; } }
/** * Return the DMS sensor weight * @return */ public int getProfileWeight() { if (getSession().isInProfile()) { return getSession().getProfiler().getProfileWeight(); } else { return 0; } }
/** * Return the DMS sensor weight * @return */ public int getProfileWeight() { if (getSession().isInProfile()) { return getSession().getProfiler().getProfileWeight(); } else { return 0; } }
/** * INTERNAL: * Define the deployment time data associated with logging and profiling * */ protected void updateDeploymentTimeData() { this.deployedSessionLog = (SessionLog)((AbstractSessionLog)session.getSessionLog()).clone(); if (session.getProfiler() == null) { this.deployedSessionProfileWeight = -1;//there is no profiler } else { this.deployedSessionProfileWeight = session.getProfiler().getProfileWeight(); } }
/** * INTERNAL: * Define the deployment time data associated with logging and profiling * */ protected void updateDeploymentTimeData() { this.deployedSessionLog = (SessionLog)((AbstractSessionLog)session.getSessionLog()).clone(); if (session.getProfiler() == null) { this.deployedSessionProfileWeight = -1;//there is no profiler } else { this.deployedSessionProfileWeight = session.getProfiler().getProfileWeight(); } }
/** * INTERNAL: * Define the deployment time data associated with logging and profiling * */ protected void updateDeploymentTimeData() { this.deployedSessionLog = (SessionLog)((AbstractSessionLog)session.getSessionLog()).clone(); if (session.getProfiler() == null) { this.deployedSessionProfileWeight = -1;//there is no profiler } else { this.deployedSessionProfileWeight = session.getProfiler().getProfileWeight(); } }
/** * PUBLIC: * Set the profiler for the session. * This allows for performance operations to be profiled. */ public void setProfiler(SessionProfiler profiler) { this.profiler = profiler; if (profiler != null) { profiler.setSession(this); setIsInProfile(getProfiler().getProfileWeight() != SessionProfiler.NONE); // Clear cached flag that bypasses the profiler check. getIdentityMapAccessorInstance().getIdentityMapManager().clearCacheAccessPreCheck(); } else { setIsInProfile(false); } }
/** * PUBLIC: * Set the profiler for the session. * This allows for performance operations to be profiled. */ public void setProfiler(SessionProfiler profiler) { this.profiler = profiler; if (profiler != null) { profiler.setSession(this); setIsInProfile(getProfiler().getProfileWeight() != SessionProfiler.NONE); // Clear cached flag that bypasses the profiler check. getIdentityMapAccessorInstance().getIdentityMapManager().checkIsCacheAccessPreCheckRequired(); } else { setIsInProfile(false); } }
/** * PUBLIC: * Set the profiler for the session. * This allows for performance operations to be profiled. */ @Override public void setProfiler(SessionProfiler profiler) { this.profiler = profiler; if (profiler != null) { profiler.setSession(this); setIsInProfile(getProfiler().getProfileWeight() != SessionProfiler.NONE); // Clear cached flag that bypasses the profiler check. getIdentityMapAccessorInstance().getIdentityMapManager().checkIsCacheAccessPreCheckRequired(); } else { setIsInProfile(false); } }