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 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) {