Class Metric

java.lang.Object
org.robolectric.pluginapi.perf.Metric

public class Metric extends Object
Metric for perf stats collection.
  • Constructor Details

    • Metric

      public Metric(String name, int count, int elapsedNs, boolean success)
    • Metric

      public Metric(String name, boolean success)
  • Method Details

    • getName

      public String getName()
    • getCount

      public int getCount()
    • getElapsedNs

      public long getElapsedNs()
    • getMinNs

      public long getMinNs()
    • getMaxNs

      public long getMaxNs()
    • isSuccess

      public boolean isSuccess()
    • record

      public void record(long elapsedNs)
    • incrementCount

      public void incrementCount()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object