public class ProfileCollector extends Object implements IProfileCollector
| Modifier and Type | Field and Description |
|---|---|
int |
currentLevel |
int |
parentLevel |
protected int |
pos |
protected Step[] |
steps |
BUFFER_SIZE| Constructor and Description |
|---|
ProfileCollector(TraceContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(StepSingle stepSingle)
(syn: setLevelAndAddStep)
add a step
|
void |
close(boolean ok)
send the Steps[] data
|
void |
pop(StepSingle stepSingle)
(syn: pullAndAddStep)
add the step already leveled and decrease one level(to lower level).
|
protected void |
process(StepSingle stepSingle)
(syn: addStep)
assign a given step to steps[pos++]
|
void |
push(StepSingle stepSingle)
(syn: pushAndSetLevel)
set the step's level as the current level and increase one level(to deeper level).
|
protected Step[] steps
protected int pos
public int currentLevel
public int parentLevel
public ProfileCollector(TraceContext context)
public void push(StepSingle stepSingle)
push in interface IProfileCollectorstepSingle - protected void process(StepSingle stepSingle)
stepSingle - public void add(StepSingle stepSingle)
add in interface IProfileCollectorstepSingle - public void pop(StepSingle stepSingle)
pop in interface IProfileCollectorstepSingle - public void close(boolean ok)
close in interface IProfileCollectorok - : send the data or notCopyright © 2021. All rights reserved.