Add trace logging for the POV size (#294)

* Add trace logging for the POV size

* :(
This commit is contained in:
Bastian Köcher
2021-01-18 13:48:36 +01:00
committed by GitHub
parent 010f106e24
commit e78aaec3ed
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -573,6 +573,14 @@ where
return None;
}
trace!(
target: "cumulus-collator",
"PoV size {{ header: {}kb, extrinsics: {}kb, storage_proof: {}kb }}",
b.header().encode().len() as f64 / 1024f64,
b.extrinsics().encode().len() as f64 / 1024f64,
b.storage_proof().encode().len() as f64 / 1024f64,
);
let collation =
self.build_collation(b, block_hash, validation_data.persisted.block_number)?;
let pov_hash = collation.proof_of_validity.hash();