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 TypeMethodDescriptionvoidadd(long executionTime) Add execution time.static ProfileLocationcreate()Create and return a new ProfileLocation.static ProfileLocationCreate and return a new ProfileLocation with a given lineNumber and label.static ProfileLocationCreate and return a new ProfileLocation with a given location.Return the full location.label()Return the short label.location()Return a short version of the location description.booleanobtain()Obtain the description returning true if this is the initial call.voidsetTraceCount(int traceCount) Set the number of times to trace the transactions for this profile location.booleantrace()Return true if this request should be traced.
-
Method Details
-
create
Create and return a new ProfileLocation. -
create
Create and return a new ProfileLocation with a given lineNumber and label. -
createAt
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
Add execution time. -
trace
boolean trace()Return true if this request should be traced. -
setTraceCount
Set the number of times to trace the transactions for this profile location.
-