EventSampler sendTpsSampler = sendTpsSamplers.get(stream);
if (sendTpsSampler == null) {
sendTpsSampler = new EventSampler(rate);
sendTpsSamplers.put(stream, sendTpsSampler);
}
Integer send = sendTpsSampler.tpsCheck();
if (send != null) {
update_task_stat(StaticsType.send_tps, stream, send * num_out_tasks);