本文整理了Java中com.jamonapi.Monitor.toString()
方法的一些代码示例,展示了Monitor.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.toString()
方法的具体详情如下:
包路径:com.jamonapi.Monitor
类名称:Monitor
方法名:toString
暂无
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* To string.
*
* @return e.g. "JAMon Label=void patterntesting.runtime.monitor.ProfileTest.testProfiler(), Units=ms.:"
* + " (LastValue=8.0, Hits=1.0, Avg=8.0, Total=8.0, Min=8.0, Max=8.0, Active=1.0, Avg Active=3.0,"
* + " Max Active=2.0, First Access=Sat Dec 27 17:31:09 CET 2008, Last Access=Sat Dec 27 17:31:09 CET 2008)"
*
* @see com.jamonapi.Monitor#toString()
*/
public String toString() {
return monitor.toString();
}
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* To string.
*
* @return e.g. "JAMon Label=void
* patterntesting.runtime.monitor.ProfileTest.testProfiler(),
* Units=ms.:" + " (LastValue=8.0, Hits=1.0, Avg=8.0, Total=8.0,
* Min=8.0, Max=8.0, Active=1.0, Avg Active=3.0," + " Max
* Active=2.0, First Access=Sat Dec 27 17:31:09 CET 2008, Last
* Access=Sat Dec 27 17:31:09 CET 2008)"
*
* @see com.jamonapi.Monitor#toString()
*/
@Override
public String toString() {
return monitor.toString();
}
代码示例来源:origin: SmartDataAnalytics/DL-Learner
public static String getStringForAllSortedByLabel() {
List<Monitor> l= getMonitors();
SortedSet<String> sset = new TreeSet<>();
StringBuilder sbuf = new StringBuilder();
for (Monitor monitor : l) {
sset.add(monitor.toString());
}
for (String onemon : sset) {
sbuf.append(onemon).append("\n");
}
return sbuf.toString();
}
代码示例来源:origin: stackoverflow.com
Monitor mon1 = null;
Monitor mon2 = null;
for(int i =0; i < 1000; i++){
//Part1
mon1 = MonitorFactory.start("Point 1");
Thread.sleep(2);
mon1.stop();
//Part2
mon2 = MonitorFactory.start("Point 2");
mon2.stop();
}
System.out.println(mon1.toString());
System.out.println(mon2.toString());
代码示例来源:origin: stevensouza/jamonapi
Object obj=null;
if ("mon".equalsIgnoreCase(type))
obj=mon.toString();
else
obj=mon.getValue(type);
内容来源于网络,如有侵权,请联系作者删除!