Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WeasyPrint==0.21
- cssselect==0.9.1
- html5lib==0.999
- lxml==3.3.5
- Filename: /home/rm/src/veasy/local/lib/python2.7/site-packages/weasyprint/css/__init__.py
- 432 def get_all_computed_styles(html, user_stylesheets=None):
- HUGE:
- 500 # Iterate on all elements, even if there is no cascaded style for them.
- 501 79.516 MiB 45.031 MiB for element in element_tree.iter():
- 502 79.508 MiB -0.008 MiB set_computed_styles(cascaded_styles, computed_styles, element,
- 503 79.516 MiB 0.008 MiB parent=element.getparent())
- 504
- SMALL:
- 500 # Iterate on all elements, even if there is no cascaded style for them.
- 501 30.707 MiB 4.539 MiB for element in element_tree.iter():
- 502 30.703 MiB -0.004 MiB set_computed_styles(cascaded_styles, computed_styles, element,
- 503 30.707 MiB 0.004 MiB parent=element.getparent())
- 504
- Filename: /home/rm/src/veasy/local/lib/python2.7/site-packages/weasyprint/layout/__init__.py
- 39 def layout_document(enable_hinting, style_for, get_image_from_uri, root_box):
- HUGE:
- 50 226.961 MiB 108.773 MiB pages = list(make_all_pages(context, root_box))
- SMALL:
- 50 48.371 MiB 12.930 MiB pages = list(make_all_pages(context, root_box))
- Filename: /home/rm/src/veasy/local/lib/python2.7/site-packages/weasyprint/document.py
- 298 def _render(cls, html, stylesheets, enable_hinting):
- HUGE:
- 303 80.004 MiB 47.672 MiB get_image_from_uri = functools.partial(
- 304 80.004 MiB 0.000 MiB images.get_image_from_uri, {}, html.url_fetcher)
- 305 80.004 MiB 0.000 MiB page_boxes = layout_document(
- 306 80.004 MiB 0.000 MiB enable_hinting, style_for, get_image_from_uri,
- 307 80.004 MiB 0.000 MiB build_formatting_structure(
- 308 118.191 MiB 38.188 MiB html.root_element, style_for, get_image_from_uri))
- 309 228.965 MiB 110.773 MiB return cls([Page(p, enable_hinting) for p in page_boxes],
- 310 228.965 MiB 0.000 MiB DocumentMetadata(**html._get_metadata()))
- SMALL:
- 303 31.602 MiB 6.355 MiB get_image_from_uri = functools.partial(
- 304 31.602 MiB 0.000 MiB images.get_image_from_uri, {}, html.url_fetcher)
- 305 31.602 MiB 0.000 MiB page_boxes = layout_document(
- 306 31.602 MiB 0.000 MiB enable_hinting, style_for, get_image_from_uri,
- 307 31.602 MiB 0.000 MiB build_formatting_structure(
- 308 35.461 MiB 3.859 MiB html.root_element, style_for, get_image_from_uri))
- 309 48.578 MiB 13.117 MiB return cls([Page(p, enable_hinting) for p in page_boxes],
- 310 48.578 MiB 0.000 MiB DocumentMetadata(**html._get_metadata()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement