From 1d7f96c06def5933755bfe48df8257cf5df9d3d0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 14 Oct 2011 16:13:54 +0200 Subject: [PATCH] Make profiling easier to read. --- weasy/document.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weasy/document.py b/weasy/document.py index 7e6223bd..badabd29 100644 --- a/weasy/document.py +++ b/weasy/document.py @@ -141,6 +141,10 @@ class Document(object): for every box. """ if self._pages is None: + # "Linearize" code flow + _ = self.computed_styles + _ = self.formatting_structure + # Actual work self._pages = layout(self) return self._pages