if (emittedSampler == null) {
emittedSampler = new EventSampler(rate);
emittedSamplers.put(stream, emittedSampler);
}
Integer times = emittedSampler.timesCheck();
if (times != null) {
update_task_stat(StaticsType.emitted, stream, times * num_out_tasks);
}
EventSampler sendTpsSampler = sendTpsSamplers.get(stream);