org.jboss.dashboard.profiler
Class CodeBlockHelper
java.lang.Object
org.jboss.dashboard.profiler.CodeBlockHelper
public class CodeBlockHelper
- extends Object
Helper class for the easy registration of custom code traces.
Usage:
CodeBlockType traceType = CodeBlockHelper.newCodeBlockType("REPORT", "Report generation");
CodeBlockTrace trace = CodeBlockHelper.newCodeBlockTrace(traceType, "report1", "Report 1", java.util.Collections.EMPTY_MAP).begin();
try {
// Generate the report 1
// ...
} finally {
trace.end();
}
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeBlockHelper
public CodeBlockHelper()
newCodeBlockType
public static CodeBlockType newCodeBlockType(String id,
String description)
newCodeBlockTrace
public static CodeBlockTrace newCodeBlockTrace(CodeBlockType type,
String traceId,
String traceDescr,
Map<String,Object> traceContext)
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.