Advertisement
Guest User

weasyprint issue #77

a guest
May 4th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. WeasyPrint==0.21
  2. cssselect==0.9.1
  3. html5lib==0.999
  4. lxml==3.3.5
  5.  
  6. Filename: /home/rm/src/veasy/local/lib/python2.7/site-packages/weasyprint/css/__init__.py
  7. 432 def get_all_computed_styles(html, user_stylesheets=None):
  8.  
  9. HUGE:
  10. 500 # Iterate on all elements, even if there is no cascaded style for them.
  11. 501 79.516 MiB 45.031 MiB for element in element_tree.iter():
  12. 502 79.508 MiB -0.008 MiB set_computed_styles(cascaded_styles, computed_styles, element,
  13. 503 79.516 MiB 0.008 MiB parent=element.getparent())
  14. 504
  15.  
  16. SMALL:
  17. 500 # Iterate on all elements, even if there is no cascaded style for them.
  18. 501 30.707 MiB 4.539 MiB for element in element_tree.iter():
  19. 502 30.703 MiB -0.004 MiB set_computed_styles(cascaded_styles, computed_styles, element,
  20. 503 30.707 MiB 0.004 MiB parent=element.getparent())
  21. 504
  22.  
  23. Filename: /home/rm/src/veasy/local/lib/python2.7/site-packages/weasyprint/layout/__init__.py
  24. 39 def layout_document(enable_hinting, style_for, get_image_from_uri, root_box):
  25.  
  26. HUGE:
  27. 50 226.961 MiB 108.773 MiB pages = list(make_all_pages(context, root_box))
  28.  
  29. SMALL:
  30. 50 48.371 MiB 12.930 MiB pages = list(make_all_pages(context, root_box))
  31.  
  32.  
  33. Filename: /home/rm/src/veasy/local/lib/python2.7/site-packages/weasyprint/document.py
  34. 298 def _render(cls, html, stylesheets, enable_hinting):
  35.  
  36. HUGE:
  37. 303 80.004 MiB 47.672 MiB get_image_from_uri = functools.partial(
  38. 304 80.004 MiB 0.000 MiB images.get_image_from_uri, {}, html.url_fetcher)
  39. 305 80.004 MiB 0.000 MiB page_boxes = layout_document(
  40. 306 80.004 MiB 0.000 MiB enable_hinting, style_for, get_image_from_uri,
  41. 307 80.004 MiB 0.000 MiB build_formatting_structure(
  42. 308 118.191 MiB 38.188 MiB html.root_element, style_for, get_image_from_uri))
  43. 309 228.965 MiB 110.773 MiB return cls([Page(p, enable_hinting) for p in page_boxes],
  44. 310 228.965 MiB 0.000 MiB DocumentMetadata(**html._get_metadata()))
  45.  
  46. SMALL:
  47. 303 31.602 MiB 6.355 MiB get_image_from_uri = functools.partial(
  48. 304 31.602 MiB 0.000 MiB images.get_image_from_uri, {}, html.url_fetcher)
  49. 305 31.602 MiB 0.000 MiB page_boxes = layout_document(
  50. 306 31.602 MiB 0.000 MiB enable_hinting, style_for, get_image_from_uri,
  51. 307 31.602 MiB 0.000 MiB build_formatting_structure(
  52. 308 35.461 MiB 3.859 MiB html.root_element, style_for, get_image_from_uri))
  53. 309 48.578 MiB 13.117 MiB return cls([Page(p, enable_hinting) for p in page_boxes],
  54. 310 48.578 MiB 0.000 MiB DocumentMetadata(**html._get_metadata()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement