log loading time for children of configurables

This commit is contained in:
Sergey Malenkov
2018-10-10 16:44:29 +03:00
parent 943efadd4f
commit 12c7cf3091
@@ -246,6 +246,7 @@ public class ConfigurableWrapper implements SearchableConfigurable, Weighted {
@Override
public Configurable[] getConfigurables() {
if (!isInitialized) {
long time = System.currentTimeMillis();
ArrayList<Configurable> list = new ArrayList<>();
if (super.myEp.dynamic) {
Composite composite = cast(Composite.class, this);
@@ -289,6 +290,7 @@ public class ConfigurableWrapper implements SearchableConfigurable, Weighted {
}
myKids = ArrayUtil.toObjectArray(list, Configurable.class);
isInitialized = true;
ConfigurableCardPanel.warn(this, "children", time);
}
return myKids;
}