APISonar


scouter.lang.step.HashedMessageStep.time

> scouter > lang > step > HashedMessageStep > time
scouter APIs lang APIs step APIs HashedMessageStep APIs time APIs

Example 1
public static void toString(StringBuffer sb, HashedMessageStep p) {
        String m = TextProxy.hashMessage.getText(p.hash);
        if (m == null)
            m = Hexa32.toString32(p.hash);

        if(p.time != -1) {
            sb.append(m).append(" #").append(FormatUtil.print(p.value, "#,##0")).append(" ").append(FormatUtil.print(p.time, "#,##0")).append(" ms");
        } else {
            sb.append(m);
        }
    }
Example 2
public void hashProfile(String msg, int value, int elapsed) {
		HashedMessageStep step = new HashedMessageStep();
		step.hash = DataProxy.sendHashedMessage(msg);
		step.value = value;
		step.time = elapsed;
		step.start_time = (int) (System.currentTimeMillis() - ctx.startTime);
		if (ctx.profile_thread_cputime) {
			step.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu);
		}
		ctx.profile.add(step);
	}