com.h3c.util.perf.model

## Class Perf

- java.lang.Object
- - com.h3c.util.perf.model.Perf

-     public class Perf
      extends Object

  An encapsulation of the performance monitor/trace. A performance monitor may span several classes and is exposed externally by the marker annotation `Perf`.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `OpMetrics` | `addOpMetricsIfAbsent(String opName)`
    `void` | `clear()`
    `Collection<OpMetrics>` | `getAllOpMetrics()`
    `String` | `getName()`
    `OpMetrics` | `getOpMetrics(String opName)`
    `boolean` | `hasOpMetrics(String opName)`
    `void` | `removeOpMetrics(String opName)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getName

          public String getName()

    - #### getAllOpMetrics

          public Collection<OpMetrics> getAllOpMetrics()

    - #### hasOpMetrics

          public boolean hasOpMetrics(String opName)

    - #### getOpMetrics

          public OpMetrics getOpMetrics(String opName)

    - #### addOpMetricsIfAbsent

          public OpMetrics addOpMetricsIfAbsent(String opName)

    - #### removeOpMetrics

          public void removeOpMetrics(String opName)

    - #### clear

          public void clear()

Copyright © 2014. All Rights Reserved.