Skip to content

Commit aa9cdb0

Browse files
authored
Merge 1fe4d36 into sapling-pr-archive-ktf
2 parents 3443e12 + 1fe4d36 commit aa9cdb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Framework/AnalysisSupport/src/TTreePlugin.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ arrow::Result<arrow::RecordBatchGenerator> TTreeFileFormat::ScanBatchesAsync(
286286

287287
auto generator = [pool = options->pool, treeFragment, dataset_schema, &totalCompressedSize = mTotCompressedSize,
288288
&totalUncompressedSize = mTotUncompressedSize]() -> arrow::Future<std::shared_ptr<arrow::RecordBatch>> {
289+
O2_SIGNPOST_ID_FROM_POINTER(tid, root_arrow_fs, treeFragment->GetTree());
290+
O2_SIGNPOST_START(root_arrow_fs, tid, "Generator", "Creating batch for tree %{public}s",treeFragment->GetTree()->GetName());
289291
std::vector<std::shared_ptr<arrow::Array>> columns;
290292
std::vector<std::shared_ptr<arrow::Field>> fields = dataset_schema->fields();
291293
auto physical_schema = *treeFragment->ReadPhysicalSchema();
@@ -492,6 +494,7 @@ arrow::Result<arrow::RecordBatchGenerator> TTreeFileFormat::ScanBatchesAsync(
492494
auto batch = arrow::RecordBatch::Make(dataset_schema, rows, columns);
493495
totalCompressedSize += tree->GetZipBytes();
494496
totalUncompressedSize += tree->GetTotBytes();
497+
O2_SIGNPOST_END(root_arrow_fs, tid, "Generator", "Done creating batch compressed:%zu uncompressed:%zu", totalCompressedSize, totalUncompressedSize);
495498
return batch;
496499
};
497500
return generator;

0 commit comments

Comments
 (0)