ENH: Add ProfileLocation - Part 2 - performance metrics for transactions with label and profileLocation

This commit is contained in:
Rob Bygrave committed 2018-01-22 14:54:27 +13:00
1 parent 4e33027fdf
commit 51d2e4c600
37 files changed
+779 -33

No files matched your search

@@ -18,9 +18,12 @@ class DProfileLocation implements ProfileLocation {
private final int lineNumber;
DProfileLocation() {
this.lineNumber = 0;
this(0);
}
/**
* Create with a given line number.
*/
DProfileLocation(int lineNumber) {
this.lineNumber = lineNumber;
}
@@ -29,6 +32,11 @@ class DProfileLocation implements ProfileLocation {
return "location: " + location;
}
@Override
public void add(long executionTime) {
// do nothing
}
public String obtain() {
// atomic assignment so happy with this
if (location == null) {