private static Integer initProfiling(IRScope scope) { /* SSS: Not being used currently tpCount = scopeThreadPollCounts.get(scope); if (tpCount == null) { tpCount = new Counter(); scopeThreadPollCounts.put(scope, tpCount); } */ Integer scopeVersion = scopeVersionMap.get(scope); if (scopeVersion == null) { scopeVersionMap.put(scope, versionCount); scopeVersion = new Integer(versionCount); } if (callerSite.call != null) { Long id = callerSite.call.callSiteId; CallSiteProfile csp = callProfile.get(id); if (csp == null) { csp = new CallSiteProfile(callerSite); callProfile.put(id, csp); } Counter csCount = csp.counters.get(scope); if (csCount == null) { csCount = new Counter(); csp.counters.put(scope, csCount); } csCount.count++; } return scopeVersion; }
private static Integer initProfiling(IRScope scope) { /* SSS: Not being used currently tpCount = scopeThreadPollCounts.get(scope); if (tpCount == null) { tpCount = new Counter(); scopeThreadPollCounts.put(scope, tpCount); } */ Integer scopeVersion = scopeVersionMap.get(scope); if (scopeVersion == null) { scopeVersionMap.put(scope, versionCount); scopeVersion = new Integer(versionCount); } if (callerSite.call != null) { Long id = callerSite.call.callSiteId; CallSiteProfile csp = callProfile.get(id); if (csp == null) { csp = new CallSiteProfile(callerSite); callProfile.put(id, csp); } Counter csCount = csp.counters.get(scope); if (csCount == null) { csCount = new Counter(); csp.counters.put(scope, csCount); } csCount.count++; } return scopeVersion; }
public static Integer initProfiling(IRScope scope) { if (scope == null) return null; /* SSS: Not being used currently tpCount = scopeThreadPollCounts.get(scope); if (tpCount == null) { tpCount = new Counter(); scopeThreadPollCounts.put(scope, tpCount); } */ Integer scopeVersion = scopeVersionMap.get(scope); if (scopeVersion == null) { scopeVersionMap.put(scope, versionCount); scopeVersion = new Integer(versionCount); } if (callerSite.call != null) { Long id = callerSite.call.callSiteId; CallSiteProfile csp = callProfile.get(id); if (csp == null) { csp = new CallSiteProfile(callerSite); callProfile.put(id, csp); } Counter csCount = csp.counters.get(scope); if (csCount == null) { csCount = new Counter(); csp.counters.put(scope, csCount); } csCount.count++; } return scopeVersion; }
public static Integer initProfiling(IRScope scope) { if (scope == null) return null; /* SSS: Not being used currently tpCount = scopeThreadPollCounts.get(scope); if (tpCount == null) { tpCount = new Counter(); scopeThreadPollCounts.put(scope, tpCount); } */ Integer scopeVersion = scopeVersionMap.get(scope); if (scopeVersion == null) { scopeVersionMap.put(scope, versionCount); scopeVersion = new Integer(versionCount); } if (callerSite.call != null) { Long id = callerSite.call.callSiteId; CallSiteProfile csp = callProfile.get(id); if (csp == null) { csp = new CallSiteProfile(callerSite); callProfile.put(id, csp); } Counter csCount = csp.counters.get(scope); if (csCount == null) { csCount = new Counter(); csp.counters.put(scope, csCount); } csCount.count++; } return scopeVersion; }