Package io.ebean

Interface ProfileLocation


public interface ProfileLocation
A location for profiling transactions and queries.

Typically represents a class method in the form of class file and line of code that started the transaction or invoked the query.

  • Method Summary

    Modifier and Type Method Description
    void add​(long executionTime)
    Add execution time.
    static ProfileLocation create()
    Create and return a new ProfileLocation.
    static ProfileLocation create​(int lineNumber, String label)
    Create and return a new ProfileLocation with a given lineNumber and label.
    static ProfileLocation createAt​(String location)
    Create and return a new ProfileLocation with a given location.
    String fullLocation()
    Return the full location.
    String label()
    Return the short label.
    String location()
    Return a short version of the location description.
    boolean obtain()
    Obtain the description returning true if this is the initial call.
    void setTraceCount​(int traceCount)
    Set the number of times to trace the transactions for this profile location.
    boolean trace()
    Return true if this request should be traced.
  • Method Details

    • create

      Create and return a new ProfileLocation.
    • create

      static ProfileLocation create​(int lineNumber, String label)
      Create and return a new ProfileLocation with a given lineNumber and label.
    • createAt

      static ProfileLocation createAt​(String location)
      Create and return a new ProfileLocation with a given location.
    • obtain

      boolean obtain()
      Obtain the description returning true if this is the initial call.
    • location

      Return a short version of the location description.
    • label

      Return the short label.
    • fullLocation

      Return the full location.
    • add

      void add​(long executionTime)
      Add execution time.
    • trace

      boolean trace()
      Return true if this request should be traced.
    • setTraceCount

      void setTraceCount​(int traceCount)
      Set the number of times to trace the transactions for this profile location.