public static void sendProfile(List<Step> p, TraceContext x) { if (p == null || p.size() == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = x.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); x.profileCount += p.size(); // udp.add(pk); sendDirect(pk); }
public static void sendProfile(List<Step> p, TraceContext x) { if (p == null || p.size() == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = x.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); x.profileCount += p.size(); // udp.add(pk); sendDirect(pk); }
public static void sendProfile(Step[] p, TraceContext context) { if (p == null || p.length == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = context.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); pk.service = context.serviceHash; pk.elapsed = (int) (System.currentTimeMillis() - context.startTime); context.profileCount += p.length; sendDirect(pk); } public static void sendProfile(List<Step> p, TraceContext x) {
public static void sendProfile(Step[] p, TraceContext context) { if (p == null || p.length == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = context.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); pk.service = context.serviceHash; pk.elapsed = (int) (System.currentTimeMillis() - context.startTime); context.profileCount += p.length; sendDirect(pk); } public static void sendProfile(List<Step> p, TraceContext x) {
public static Pack createNonExt(byte packType) { switch (packType) { case MAP: return new MapPack(); case PERF_COUNTER: return new PerfCounterPack(); case PERF_STATUS: return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack(); case TEXT: return new TextPack(); case ALERT: return new AlertPack(); case OBJECT: return new ObjectPack(); case STACK: return new StackPack(); case SUMMARY: return new SummaryPack(); case BATCH: return new BatchPack(); case PERF_INTERACTION_COUNTER: return new InteractionPerfCounterPack(); default: return null; } }
return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack();
return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack();
return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack();
return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack();
public static void sendProfile(List<Step> p, TraceContext x) { if (p == null || p.size() == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = x.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); x.profileCount += p.size(); // udp.add(pk); sendDirect(pk); }
public static void sendProfile(Step[] p, TraceContext context) { if (p == null || p.length == 0) return; XLogProfilePack pk = new XLogProfilePack(); pk.txid = context.txid; pk.objHash = conf.getObjHash(); pk.profile = Step.toBytes(p); pk.service = context.serviceHash; pk.elapsed = (int) (System.currentTimeMillis() - context.startTime); context.profileCount += p.length; sendDirect(pk); } public static void sendProfile(List<Step> p, TraceContext x) {
return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack();
return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack();
return new StatusPack(); case XLOG_PROFILE: return new XLogProfilePack(); case XLOG: return new XLogPack();