File tree Expand file tree Collapse file tree
src/org/netbeans/modules/php/wordpress/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454import java .util .List ;
5555import java .util .concurrent .ExecutionException ;
5656import java .util .concurrent .Future ;
57+ import static java .util .logging .Level .INFO ;
5758import java .util .logging .Logger ;
5859import static java .util .logging .Level .WARNING ;
5960import org .netbeans .api .extexecution .ExecutionDescriptor ;
@@ -362,6 +363,7 @@ public List<FrameworkCommand> getCommands(boolean isForce) {
362363 }
363364
364365 public void updateCommands () {
366+ long startTime = System .currentTimeMillis ();
365367 COMMANDS_CACHE .clear ();
366368 getCommands (Collections .<String >emptyList (), COMMANDS_CACHE );
367369 if (COMMANDS_CACHE .isEmpty ()) {
@@ -375,6 +377,8 @@ public void updateCommands() {
375377 WordPressOptions .getInstance ().setWpCliCommandList (commadlist );
376378 }
377379 }
380+ long endTime = System .currentTimeMillis ();
381+ LOGGER .log (INFO , "Update Commands: took {0}ms" , endTime - startTime ); // NOI18N
378382 }
379383
380384 // XXX get help later?
You can’t perform that action at this time.
0 commit comments