/** * send the Steps[] data * @param ok : send the data or not */ public void close(boolean ok) { checkDumpStep(); if (ok && pos > 0) { StepSingle[] newSteps = new StepSingle[pos]; System.arraycopy(steps, 0, newSteps, 0, pos); DataProxy.sendProfile(newSteps, context); } }
/** * (syn: addStep) * assign a given step to steps[pos++] * @param stepSingle */ protected void process(StepSingle stepSingle) { checkDumpStep(); steps[pos++] = stepSingle; if (pos >= steps.length) { Step[] o = steps; steps = new Step[conf.profile_step_max_count]; pos = 0; DataProxy.sendProfile(o, context); } }
/** * (syn: addStep) * assign a given step to steps[pos++] * @param stepSingle */ protected void process(StepSingle stepSingle) { checkDumpStep(); steps[pos++] = stepSingle; if (pos >= steps.length) { Step[] o = steps; steps = new Step[conf.profile_step_max_count]; pos = 0; DataProxy.sendProfile(o, context); } }
/** * send the Steps[] data * @param ok : send the data or not */ public void close(boolean ok) { checkDumpStep(); if (ok && pos > 0) { StepSingle[] newSteps = new StepSingle[pos]; System.arraycopy(steps, 0, newSteps, 0, pos); DataProxy.sendProfile(newSteps, context); } else { TraceContext context = TraceContextManager.getContext(); context.profileCount = context.profileCount * -1; //already sent profile size.(set minus.) } }
protected void process() { List<Step> steps = new ArrayList<Step>(totalCount); toArray(methods, steps); toArray(sqls, steps); toArray(apicalls, steps); toArray(sockets, steps); totalCount = 0; DataProxy.sendProfile(steps, context); }
protected void process() { List<Step> steps = new ArrayList<Step>(totalCount); toArray(methods, steps); toArray(sqls, steps); toArray(apicalls, steps); toArray(sockets, steps); totalCount = 0; DataProxy.sendProfile(steps, context); }
/** * send the Steps[] data * @param ok : send the data or not */ public void close(boolean ok) { checkDumpStep(); if (ok && pos > 0) { StepSingle[] newSteps = new StepSingle[pos]; System.arraycopy(steps, 0, newSteps, 0, pos); DataProxy.sendProfile(newSteps, context); } }
/** * (syn: addStep) * assign a given step to steps[pos++] * @param stepSingle */ protected void process(StepSingle stepSingle) { checkDumpStep(); steps[pos++] = stepSingle; if (pos >= steps.length) { Step[] o = steps; steps = new Step[conf.profile_step_max_count]; pos = 0; DataProxy.sendProfile(o, context); } }
protected void process() { List<Step> steps = new ArrayList<Step>(totalCount); toArray(methods, steps); toArray(sqls, steps); toArray(apicalls, steps); toArray(sockets, steps); totalCount = 0; DataProxy.sendProfile(steps, context); }