Package jetbrains.mps.util.performance
Interface IPerformanceTracer
- 
- All Known Implementing Classes:
 IPerformanceTracer.NullPerformanceTracer,PerformanceTracer
public interface IPerformanceTracerInterface which offers a cosy stack-like methods to track the performance (e.g. time consumption) Evgeny Gryaznov, Feb 23, 2010 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIPerformanceTracer.NullPerformanceTracerDefault implementation which tracks nothing 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidaddText(String s)voidpop()default voidpush(String taskName)voidpush(String taskName, boolean isMajor)Deprecated.parameterisMajoris useless, usepush(String)voidpush(IPerformanceTracer other)Include trace information from another instance as part of active task.Stringreport(String... separate) 
 - 
 
- 
- 
Method Detail
- 
push
@Deprecated void push(String taskName, boolean isMajor)
Deprecated.parameterisMajoris useless, usepush(String) 
- 
push
default void push(String taskName)
 
- 
push
void push(IPerformanceTracer other)
Include 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).- Parameters:
 other- not null
 
- 
pop
void pop()
 
- 
report
String report(String... separate)
- Parameters:
 separate- name of tasks not to get merged with other and reported individually- Returns:
 - multi-line report text
 
 
- 
addText
void addText(String s)
 
 - 
 
 -