- for( Iterator<Integer> evit = threadNum2eid2c[i].keySet().iterator();
- evit.hasNext();
- ) {
- Integer event = evit.next();
- Counter c = threadNum2eid2c[i].get( event );
- String eventname = eid2name.containsKey( event ) ?
- eid2name.get( event ) :
- Integer.toString( event );
-
- // time stamps are measured in processor ticks, so don't bother converting
- // to time in secs, just figure out how much time events take in terms of
- // other events, or the total program time
-
- float tSelf_perc =
- 100.0f *
- new Long( c.selfTime ).floatValue() /
- new Long( c.totalTime ).floatValue();
-
- System.out.println( "Event: "+eventname+
- " total time(ticks)="+c.totalTime+
- " self time(%)=" +tSelf_perc+
- " count="+c.count
- );
- }
- System.out.println("----------------------------------------------------");