本文整理了Java中com.jamonapi.Monitor.getTotal()
方法的一些代码示例,展示了Monitor.getTotal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.getTotal()
方法的具体详情如下:
包路径:com.jamonapi.Monitor
类名称:Monitor
方法名:getTotal
暂无
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* Gets the total.
*
* @return total
*
* @see com.jamonapi.Monitor#getTotal()
*/
@Override
public double getTotal() {
return monitor.getTotal();
}
代码示例来源:origin: stevensouza/jamonapi
@Override
public double getTotal() {
double value=0;
for (int i=0;i<numRows;i++) {
value+=monitors[i].getTotal();
}
return value;
}
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* Gets the total.
*
* @return total
*
* @see com.jamonapi.Monitor#getTotal()
*/
public double getTotal() {
return monitor.getTotal();
}
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
public double getTotal() {
double value=0;
for (int i=0;i<numRows;i++) {
value+=monitors[i].getTotal();
}
return value;
}
代码示例来源:origin: stevensouza/jamonapi
@Override
public double getAvg() {
double hits=getHits();
double total=0;
for (int i=0;i<numRows;i++) {
total+=monitors[i].getTotal();
}
if (hits==0)
return 0;
else
return total/hits;
}
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
public double getAvg() {
double hits=getHits();
double total=0;
for (int i=0;i<numRows;i++) {
total+=monitors[i].getTotal();
}
if (hits==0)
return 0;
else
return total/hits;
}
代码示例来源:origin: SmartDataAnalytics/DL-Learner
public static String convMonitorToString (Monitor m) {
String retVal = m.getLabel()+"|\t";
String unit = m.getUnits();
retVal+=unit+"|\t";
long content = new Double(m.getTotal()).longValue();
content = content / (1000*1000);
String contentstr = (unit.equals(MS))? Helper.prettyPrintNanoSeconds(content ) : m.getHits()+"" ;
retVal+= "total:"+contentstr+"|\t";
long avg = new Double(m.getAvg()).longValue();
avg = avg / (1000*1000);
String avgstr = (unit.equals(MS))? Helper.prettyPrintNanoSeconds(avg ) : avg+"" ;
retVal+= "avg:"+avgstr+"|\t";
return retVal;
}
代码示例来源:origin: SmartDataAnalytics/DL-Learner
public synchronized void init() {
for (String url : ontologySchemaUrls) {
log.info("Testing, if indexed: " + url);
if (alreadyIndexed.add(url)) {
log.info("Ontology not found, start indexing");
try {
Monitor m0 = MonitorFactory.start("Indexer parsing ontology");
model = ModelFactory.createOntologyModel();
model.read(url, null);
classIndexer.index(model);
m0.stop();
log.info("indexed ontology in ms: " + m0.getTotal());
} catch (Exception e) {
log.error(e.getMessage(), e);
}
} else {
//not so important output
log.debug("Already indexed: " + url + " " + alreadyIndexed);
}
}
}
代码示例来源:origin: stevensouza/jamonapi
b.append(getAvg());
b.append(", Total=");
b.append(getTotal());
b.append(", Min=");
b.append(getMin());
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
b.append(getAvg());
b.append(", Total=");
b.append(getTotal());
b.append(", Min=");
b.append(getMin());
代码示例来源:origin: stevensouza/jamonapi
return new Double(getMax());
else if (TOTAL.equalsIgnoreCase(key))
return new Double(getTotal());
else if (ACTIVE.equalsIgnoreCase(key))
return new Double(getActive());
代码示例来源:origin: com.google.code.maven-play-plugin.org.playframework/play
out.println("~~~~~~~~");
List<Monitor> monitors = new ArrayList<>(asList(MonitorFactory.getRootMonitor().getMonitors()));
monitors.sort((m1, m2) -> Double.compare(m2.getTotal(), m1.getTotal()));
int lm = 10;
for (Monitor monitor : monitors) {
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* @see patterntesting.runtime.monitor.ProfileMonitor#toShortString()
*/
public String toShortString() {
return "Hits=" + (long) monitor.getHits() + ", Avg=" + monitor.getAvg()
+ ", Total=" + monitor.getTotal() + ", Max=" + monitor.getMax()
+ ", Unit=" + monitor.getUnits();
}
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* To short string.
*
* @return the string
* @see patterntesting.runtime.monitor.ProfileMonitor#toShortString()
*/
@Override
public String toShortString() {
return "Hits=" + (long) monitor.getHits() + ", Avg=" + monitor.getAvg() + ", Total=" + monitor.getTotal()
+ ", Max=" + monitor.getMax() + ", Unit=" + monitor.getUnits();
}
代码示例来源:origin: SmartDataAnalytics/DL-Learner
sb.append(separator).append(mon.getTotal());
sb.append(separator).append(mon.getMin());
sb.append(separator).append(mon.getMax());
代码示例来源:origin: SmartDataAnalytics/DL-Learner
public FinalizedMonitor(Monitor m){
header = (String)m.getMonKey().getValue(MonKey.LABEL_HEADER);
units = (String)m.getMonKey().getValue(MonKey.UNITS_HEADER);
avg = m.getAvg();
hits = m.getHits();
stdDev = m.getStdDev();
lastValue = m.getLastValue();
max = m.getMax();
min = m.getMin();
total = m.getTotal();
}
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
MonitorFactory.add("purchasesNoRange", "dollars", 1000.0);
System.out.println("purchasesTimeTestNoRange=" + m.stop().getTotal());
MonitorFactory.start("testTimer").stop();
System.out.println("testTimerTimeTest=" + m.stop().getTotal());
for (int i = -5; i <= 20; i++) {
MonitorFactory.add("purchases", "dollars", i * 50);
System.out.println("Total time=" + timer.getTotal());
MonitorFactory.add("purchasesRange", "dollars", 1000.0);
System.out.println("purchasesTimeTestRange=" + m.stop().getTotal());
Object[][] data = null;
MonitorFactory.setRangeDefault("bytes", getTestHolder());
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* @see patterntesting.runtime.monitor.ProfileMonitor#toCsvString()
*/
public String toCsvString() {
return monitor.getLabel() + "; " + monitor.getUnits() + "; "
+ monitor.getLastValue() + "; " + (long) monitor.getHits()
+ "; " + monitor.getAvg() + "; " + monitor.getTotal() + "; "
+ monitor.getMin() + "; " + monitor.getMax() + "; "
+ monitor.getActive() + "; " + monitor.getAvgActive() + "; "
+ monitor.getMaxActive() + "; " + monitor.getFirstAccess()
+ "; " + monitor.getLastAccess() + ";";
}
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* To csv string.
*
* @return the string
* @see patterntesting.runtime.monitor.ProfileMonitor#toCsvString()
*/
@Override
public String toCsvString() {
return '"' + monitor.getLabel() + "\"; " + monitor.getUnits() + "; " + monitor.getLastValue() + "; "
+ (long) monitor.getHits() + "; " + monitor.getAvg() + "; " + monitor.getTotal() + "; "
+ monitor.getMin() + "; " + monitor.getMax() + "; " + monitor.getActive() + "; "
+ monitor.getAvgActive() + "; " + monitor.getMaxActive() + "; " + monitor.getFirstAccess() + "; "
+ monitor.getLastAccess() + ";";
}
代码示例来源:origin: stevensouza/jamonapi
public MonitorDelta(Monitor mon) {
label = mon.getLabel();
units = mon.getUnits();
hits = mon.getHits();
total = mon.getTotal();
avg = mon.getAvg();
min = mon.getMin();
max = mon.getMax();
stdDev = mon.getStdDev();
firstAccess = mon.getFirstAccess();
lastAccess = mon.getLastAccess();
lastValue = mon.getLastValue();
active = mon.getActive();
maxActive = mon.getMaxActive();
avgActive = mon.getAvgActive();
}
内容来源于网络,如有侵权,请联系作者删除!