jtulach commented on code in PR #9821:
URL: https://github.com/apache/netbeans/pull/9821#discussion_r4656919649


##########
ide/projectui/src/org/netbeans/modules/project/ui/groups/Group.java:
##########
@@ -578,7 +578,10 @@ static void open(final Group g, String oldGroupName, 
boolean isNewGroup, Prefere
                 oldOpen.add(real != null ? real : open);
             }
 
+            long then = System.currentTimeMillis();
             Set<Project> newOpen = g != null ? g.getProjects(h, 10, 100) : 
Collections.emptySet();
+            long now = System.currentTimeMillis();
+            LOG.log(Level.FINE, "Found {0} projects of group {1} in {2} ms", 
new Object[] { newOpen.size(), g, now - then });

Review Comment:
   - I am using `netbeans 
-J-Dorg.netbeans.modules.project.ui.groups.Group.level=FINE` to enabled this 
log message
   - and then `grep Group nbbuild/testuserdir/var/log/messages.log` for it
   - previously it would print `Found 1 206 projects of group 
DirectoryGroup[id=netbeans,|projects|=1203] in 16 779 ms`
   - now it prints `Found 857 projects of group 
DirectoryGroup[id=netbeans,|projects|=857] in 3 665 ms`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to