Package jetbrains.mps.util.performance
Class IPerformanceTracer.NullPerformanceTracer
- java.lang.Object
 - 
- jetbrains.mps.util.performance.IPerformanceTracer.NullPerformanceTracer
 
 
- 
- All Implemented Interfaces:
 IPerformanceTracer
- Enclosing interface:
 - IPerformanceTracer
 
public static final class IPerformanceTracer.NullPerformanceTracer extends Object implements IPerformanceTracer
Default implementation which tracks nothing 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface jetbrains.mps.util.performance.IPerformanceTracer
IPerformanceTracer.NullPerformanceTracer 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NullPerformanceTracer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddText(String s)voidpop()voidpush(String taskName)voidpush(String taskName, boolean isMajor)voidpush(IPerformanceTracer other)Include trace information from another instance as part of active task.Stringreport(String... separate) 
 - 
 
- 
- 
Method Detail
- 
push
public void push(String taskName, boolean isMajor)
- Specified by:
 pushin interfaceIPerformanceTracer
 
- 
push
public void push(String taskName)
- Specified by:
 pushin interfaceIPerformanceTracer
 
- 
push
public void push(IPerformanceTracer other)
Description copied from interface:IPerformanceTracerInclude trace information from another instance as part of active task. Might come handy to overcome limitations of single-threaded implementation (e.g. generator's main thread with a 'global' tracer, and individual transformation threads reporting into own trace, with results merged).- Specified by:
 pushin interfaceIPerformanceTracer- Parameters:
 other- not null
 
- 
pop
public void pop()
- Specified by:
 popin interfaceIPerformanceTracer
 
- 
report
public String report(String... separate)
- Specified by:
 reportin interfaceIPerformanceTracer- Parameters:
 separate- name of tasks not to get merged with other and reported individually- Returns:
 - multi-line report text
 
 
- 
addText
public void addText(String s)
- Specified by:
 addTextin interfaceIPerformanceTracer
 
 - 
 
 -