use of com.brsanthu.googleanalytics.EventHit in project h2o-3 by h2oai.
the class GAUtils method logStartup.
public static void logStartup() {
if (H2O.GA != null) {
if (H2O.SELF == H2O.CLOUD._memary[0]) {
int cloudSize = H2O.CLOUD.size();
H2O.GA.postAsync(new EventHit("System startup info", "Cloud", "Cloud size", cloudSize));
if (cloudSize > 1)
H2O.GA.postAsync(new EventHit("System startup info", "Cloud", "Multi-node cloud size", cloudSize));
postRange("System startup info", "Cloud", "Cloud size", new int[] { 2, 3, 4, 5, 10, 20, 30, 40, 50, 60 }, cloudSize);
if (H2O.ARGS.ga_hadoop_ver != null) {
H2O.GA.postAsync(new EventHit("System startup info", "Hadoop version", H2O.ARGS.ga_hadoop_ver));
} else if (H2O.CLOUD.size() > 1) {
H2O.GA.postAsync(new EventHit("System startup info", "Hadoop version", "Non-hadoop cloud"));
}
// Figure out total memory usage
int totMem = 0;
for (H2ONode node : H2O.CLOUD.members()) // Sum at MB level
totMem += node._heartbeat.get_free_mem() >> 20;
//Simplfy to GB
totMem = totMem >> 10;
H2O.GA.postAsync(new EventHit("System startup info", "Memory", "Total Cloud Memory (GB)", totMem));
postRange("System startup info", "Memory", "Total Cloud Memory (GB)", new int[] { 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 }, totMem);
}
}
}
use of com.brsanthu.googleanalytics.EventHit in project h2o-3 by h2oai.
the class GAUtils method logParse.
public static void logParse(long totalParseSize, int fileCount, int colCount) {
if (H2O.GA != null) {
int parseSize = (int) (totalParseSize >> 20);
H2O.GA.postAsync(new EventHit("File I/O", "Read", "Total size (MB)", parseSize));
postRange("File I/O", "Read", "Total size (MB)", new int[] { 100, 500, 1000, 5000, 10000, 50000, 100000, 500000, 1000000, 5000000 }, parseSize);
H2O.GA.postAsync(new EventHit("File I/O", "Read", "File count", fileCount));
H2O.GA.postAsync(new EventHit("File I/O", "Read", "Column count", colCount));
postRange("File I/O", "Read", "Column count", new int[] { 100, 500, 1000, 5000, 10000, 50000, 100000, 500000 }, colCount);
}
}