Sglang Tracing: optimize trace_event_batch() (#13036)
Signed-off-by: Feng Su <sufeng@linux.alibaba.com>
This commit is contained in:
@@ -879,8 +879,7 @@ class SchedulerDisaggregationDecodeMixin:
|
||||
ret = self.prepare_mlp_sync_batch(ret)
|
||||
|
||||
if ret:
|
||||
attrs = {"bid": hex(id(ret)), "batch_size": ret.batch_size()}
|
||||
trace_event_batch("schedule", ret.reqs, attrs=attrs)
|
||||
trace_event_batch("schedule", ret.reqs)
|
||||
return ret
|
||||
|
||||
def get_new_prebuilt_batch(self: Scheduler) -> Optional[ScheduleBatch]:
|
||||
|
||||
@@ -321,8 +321,7 @@ class SchedulerDisaggregationPrefillMixin:
|
||||
batch = self.prepare_mlp_sync_batch(batch)
|
||||
|
||||
if batch:
|
||||
attrs = {"bid": hex(id(batch)), "batch_size": batch.batch_size()}
|
||||
trace_event_batch("schedule", batch.reqs, attrs=attrs)
|
||||
trace_event_batch("schedule", batch.reqs)
|
||||
|
||||
return batch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user