You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2017/05/10 12:34:53 UTC

[06/50] [abbrv] lucene-solr:jira/solr-10290: SOLR-10607: Improve RTimerTree documentation

SOLR-10607: Improve RTimerTree documentation


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/60b27234
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/60b27234
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/60b27234

Branch: refs/heads/jira/solr-10290
Commit: 60b27234bcf369b2c3e92137353b021119927a3c
Parents: 14e3451
Author: Erick Erickson <er...@apache.org>
Authored: Thu May 4 08:10:30 2017 -0700
Committer: Cassandra Targett <ca...@lucidworks.com>
Committed: Wed May 10 07:30:32 2017 -0500

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/util/RTimerTree.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/60b27234/solr/core/src/java/org/apache/solr/util/RTimerTree.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/util/RTimerTree.java b/solr/core/src/java/org/apache/solr/util/RTimerTree.java
index e4d0021..7e27669 100644
--- a/solr/core/src/java/org/apache/solr/util/RTimerTree.java
+++ b/solr/core/src/java/org/apache/solr/util/RTimerTree.java
@@ -51,9 +51,10 @@ public class RTimerTree extends RTimer {
     return new RTimerTree();
   }
 
-  /** Create new subtimer with given name
-   *
-   * Subtimer will be started.
+  /**
+   * Returns a subtimer given its name.
+   * If the subtimer did not exist a new subtimer will be started and returned,
+   * otherwise an existing subtimer will be returned as-is.
    */
   public RTimerTree sub(String desc) {
     RTimerTree child = children.get( desc );