#1237 - ENH: Add ProfileLocation - support for relating performance metrics for queries and transactions back to source line of code

This commit is contained in:
Rob Bygrave committed 2018-01-18 18:10:03 +13:00
1 parent 82f5c21d26
commit b9ae76d465
23 files changed
+359 -11

No files matched your search

@@ -0,0 +1,25 @@
package io.ebeaninternal.server.profile;
import io.ebean.ProfileLocation;
import io.ebean.service.SpiProfileLocationFactory;
/**
* Default implementation of the profile location factory.
*/
public class DProfileLocationFactory implements SpiProfileLocationFactory {
@Override
public ProfileLocation create() {
return new DProfileLocation();
}
@Override
public ProfileLocation create(int lineNumber) {
return new DProfileLocation(lineNumber);
}
@Override
public ProfileLocation create(String location) {
return new BasicProfileLocation(location);
}
}