Package jetbrains.mps.util.performance
Class PerformanceTracer
- java.lang.Object
 - 
- jetbrains.mps.util.performance.PerformanceTracer
 
 
- 
- All Implemented Interfaces:
 IPerformanceTracer
public final class PerformanceTracer extends Object implements IPerformanceTracer
Not thread-safe! 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface jetbrains.mps.util.performance.IPerformanceTracer
IPerformanceTracer.NullPerformanceTracer 
 - 
 
- 
Constructor Summary
Constructors Constructor Description PerformanceTracer(String name) 
- 
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(long cutOffTimeMillis, String... separate)Stringreport(String... separate) 
 - 
 
- 
- 
Constructor Detail
- 
PerformanceTracer
public PerformanceTracer(String name)
 
 - 
 
- 
Method Detail
- 
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
 
- 
push
public void push(String taskName, boolean isMajor)
- Specified by:
 pushin interfaceIPerformanceTracer
 
- 
push
public void push(String taskName)
- Specified by:
 pushin interfaceIPerformanceTracer
 
- 
pop
public void pop()
- Specified by:
 popin interfaceIPerformanceTracer
 
- 
addText
public void addText(String s)
- Specified by:
 addTextin 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
 
 
 - 
 
 -