public static ProfilingRecord addProfiling ( long execTimeMs , String command , long durationMs ) { ProfilingRecord record = new ProfilingRecord ( execTimeMs , command , durationMs ) ; List < ProfilingRecord > records = profilingRecords . get ( ) ; records . add ( record ) ; while ( records . size ( ) > 100 ) { records . remove ( 0 ) ; } return record ; }
Adds a new profiling record .