public void leave(Thread threadId,MetricReference metricReference){
  TImeMetricInfo info=metricStatisticsMap.get(metricReference);
  HashMap<MetricReference,Object> attribs=getAttributes(threadId);
  long delta=System.currentTimeMillis() - (Long)attribs.get(metricReference);
  info.totalTime+=delta;
  info.numberOfEvents++;
  info.averageTime=info.totalTime / info.numberOfEvents;
  attribs.put(metricReference,Long.MIN_VALUE);
}

public void leave ( Thread threadId , MetricReference metricReference ) { TImeMetricInfo info = metricStatisticsMap . get ( metricReference ) ; HashMap < MetricReference , Object > attribs = getAttributes ( threadId ) ; long delta = System . currentTimeMillis ( ) - ( Long ) attribs . get ( metricReference ) ; info . totalTime += delta ; info . numberOfEvents ++ ; info . averageTime = info . totalTime / info . numberOfEvents ; attribs . put ( metricReference , Long . MIN_VALUE ) ; }
leave a traced zone by the name of metricreference for the specifed thread . no more analysis will be done on this thread .
