Package org.nuiton.jaxx.compiler
Class JAXXProfile
- java.lang.Object
-
- org.nuiton.jaxx.compiler.JAXXProfile
-
public class JAXXProfile extends Object
Pour profiler les temps d'execution pendant une compilation.- Since:
- 1.3
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classJAXXProfile.CompilerEntrystatic classJAXXProfile.ProfileResult
-
Field Summary
Fields Modifier and Type Field Description static StringTIME_PATTERN
-
Constructor Summary
Constructors Constructor Description JAXXProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTime(JAXXCompiler compiler, String key)StringBuildercomputeProfileReport()protected JAXXCompilergetCompiler(int hasCode)Map<JAXXCompiler,Long>getDelta(String keyOne, String keyTwo)protected JAXXProfile.CompilerEntrygetEntry(JAXXCompiler compiler)JAXXProfile.ProfileResultnewProfileResult(String name)JAXXProfile.ProfileResultnewProfileResult(JAXXProfile.ProfileResult... toCumul)protected voidprintReportLine(StringBuilder buffer, String reportPattern, String label, long firstPassCounter, long secondPassCounter, long cssCounter, long finalizeCounter, long generatorCounter, long totalCounter)protected voidprintReportLine2(StringBuilder buffer, String reportPattern, String label, long firstPassCounter, long secondPassCounter, long cssCounter, long finalizeCounter, long generatorCounter, long totalCounter)
-
-
-
Field Detail
-
TIME_PATTERN
public static final String TIME_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
addTime
public void addTime(JAXXCompiler compiler, String key)
-
getDelta
public Map<JAXXCompiler,Long> getDelta(String keyOne, String keyTwo)
-
newProfileResult
public JAXXProfile.ProfileResult newProfileResult(String name)
-
newProfileResult
public JAXXProfile.ProfileResult newProfileResult(JAXXProfile.ProfileResult... toCumul)
-
computeProfileReport
public StringBuilder computeProfileReport()
-
printReportLine
protected void printReportLine(StringBuilder buffer, String reportPattern, String label, long firstPassCounter, long secondPassCounter, long cssCounter, long finalizeCounter, long generatorCounter, long totalCounter)
-
printReportLine2
protected void printReportLine2(StringBuilder buffer, String reportPattern, String label, long firstPassCounter, long secondPassCounter, long cssCounter, long finalizeCounter, long generatorCounter, long totalCounter)
-
getEntry
protected JAXXProfile.CompilerEntry getEntry(JAXXCompiler compiler)
-
getCompiler
protected JAXXCompiler getCompiler(int hasCode)
-
-