}
EventDetail ev = (EventDetail)_statsByType.get(type);
if (ev == null) {
// create a new EventDetail if one does not exist
Stats stats = PerformanceState.getThisThreadHashtable();
PerformanceCheck check = stats._performanceCheck;
long[] levels = check == null ?
null : check.getThresholds(_name, type);
long stackTraceThreshold = levels == null ? 0 : levels[1];
ev = new EventDetail(type, stackTraceThreshold);