Class ElapsedTime

java.lang.Object
com.yahoo.search.statistics.ElapsedTime

public class ElapsedTime extends Object
A collection of TimeTracker instances.
Author:
Steinar Knutsen
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    long
    Total amount of time spent in all threads for this Execution while fetching document contents, or preparing to fetch them.
    long
    Time stamp of start of the first event registered.
    long
    The time of the start of the first document fill requested.
    boolean
     
    long
    Time stamp of the end the last event registered.
    void
     
    long
    Total amount of time spent in all threads for this Execution while pinging, or preparing to ping, a backend.
    long
    Total amount of time spent in all threads for this Execution while searching or waiting for (a) backend(s) doing (a) search(es).
    long
    Total amount of time spent for this ElapsedTime instance.
    long
    Give an estimate on how much of the time tracked by this instance was used fetching document contents.
    long
    Give a relative estimate on how much of the time tracked by this instance was used pinging backends.
    long
    Give a relative estimate on how much of the time tracked by this instance was used searching.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ElapsedTime

      public ElapsedTime()
  • Method Details

    • add

      public void add(TimeTracker track)
    • weightedFillTime

      public long weightedFillTime()
      Give an estimate on how much of the time tracked by this instance was used fetching document contents. This will by definition be smaller than last() - first().
    • fillTime

      public long fillTime()
      Total amount of time spent in all threads for this Execution while fetching document contents, or preparing to fetch them.
    • totalTime

      public long totalTime()
      Total amount of time spent for this ElapsedTime instance.
    • weightedSearchTime

      public long weightedSearchTime()
      Give a relative estimate on how much of the time tracked by this instance was used searching. This will by definition be smaller than last() - first().
    • searchTime

      public long searchTime()
      Total amount of time spent in all threads for this Execution while searching or waiting for (a) backend(s) doing (a) search(es).
    • pingTime

      public long pingTime()
      Total amount of time spent in all threads for this Execution while pinging, or preparing to ping, a backend.
    • weightedPingTime

      public long weightedPingTime()
      Give a relative estimate on how much of the time tracked by this instance was used pinging backends. This will by definition be smaller than last() - first().
    • first

      public long first()
      Time stamp of start of the first event registered.
    • last

      public long last()
      Time stamp of the end the last event registered.
    • merge

      public void merge(ElapsedTime other)
    • firstFill

      public long firstFill()
      The time of the start of the first document fill requested.
    • hasDetailedData

      public boolean hasDetailedData()
    • detailedReport

      public String detailedReport()