mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Update analytic settings
This commit is contained in:
@@ -5,11 +5,17 @@ import net.openhft.chronicle.core.pom.PomProperties;
|
||||
|
||||
public enum AnalyticsHolder {;
|
||||
|
||||
static {
|
||||
System.setProperty("chronicle.analytics.enable","true");
|
||||
}
|
||||
|
||||
// Todo: VERSION is "unknown" for some reason
|
||||
private static final String VERSION = PomProperties.version("net.openhft", "chronicle-map");
|
||||
|
||||
private static final AnalyticsFacade ANALYTICS = AnalyticsFacade.standardBuilder("G-TDTJG5CT6G", "J8qsWGHgQP6CLs43mQ10KQ", VERSION)
|
||||
//.withReportDespiteJUnit()
|
||||
.withDebugLogger(System.out::println)
|
||||
//.withUrl("https://www.google-analytics.com/debug/mp/collect")
|
||||
.build();
|
||||
|
||||
public static AnalyticsFacade instance() {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package net.openhft.chronicle.map.internal;
|
||||
|
||||
import net.openhft.chronicle.core.Jvm;
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.ChronicleMapBuilder;
|
||||
|
||||
@@ -29,6 +30,7 @@ public final class AnalyticsMain {
|
||||
m2.put(2L, "Two");
|
||||
}
|
||||
}
|
||||
Jvm.pause(2_000);
|
||||
System.out.println("Completed successfully");
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user