mPerformanceMillis = Collections.synchronizedMap( new HashMap<String,Long>() ); mUnmodifiablePerformanceMillis = Collections.unmodifiableMap( mPerformanceMillis );
Add a performance metric. if ( mPerformanceMillis.containsKey( name ) ) { throw new IllegalStateException(); } mPerformanceMillis.put( name, millis );
if ( mPerformanceMillis.containsKey( name ) ) { throw new IllegalStateException(); } mPerformanceMillis.put( name, millis );
return INSTANCE;
returnunmodifiable Map of performance data return mUnmodifiablePerformanceMillis;
return mUnmodifiablePerformanceMillis;