mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-23 23:13:55 +00:00
ENH: Add ProfileLocation - Part 2 - performance metrics for transactions with label and profileLocation
This commit is contained in:
1 parent
4e33027fdf
commit
51d2e4c600
37 files changed
+779
-33
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package io.ebeaninternal.server.profile;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Global registry of the TimedProfileLocation instances created.
|
||||
*/
|
||||
public class TimedProfileLocationRegistry {
|
||||
|
||||
private static final List<TimedProfileLocation> list = Collections.synchronizedList(new ArrayList<TimedProfileLocation>());
|
||||
|
||||
/**
|
||||
* Register the timed profile location instance.
|
||||
*/
|
||||
public static void register(TimedProfileLocation location) {
|
||||
list.add(location);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all the registered timed locations.
|
||||
*/
|
||||
public static List<TimedProfileLocation> registered() {
|
||||
return list;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user