summaryrefslogtreecommitdiff
path: root/bs4/diagnose.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2013-06-03 09:32:03 -0400
committerLeonard Richardson <leonard.richardson@canonical.com>2013-06-03 09:32:03 -0400
commit88699026b6f94d6d7a831e849b01b8f3582d57a4 (patch)
tree3aa59a7928bf5477d74b15e165c14a3d4f755e8f /bs4/diagnose.py
parentd284ed9a3b16d7259303171934ade247186eb24f (diff)
Inlined some commonly called code to save a function call.
Diffstat (limited to 'bs4/diagnose.py')
-rw-r--r--bs4/diagnose.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/diagnose.py b/bs4/diagnose.py
index c5a0c06..a2b405b 100644
--- a/bs4/diagnose.py
+++ b/bs4/diagnose.py
@@ -192,8 +192,8 @@ def profile(num_elements=100000, parser="lxml"):
stats.strip_dirs()
cumulative = stats.sort_stats("cumulative")
total = stats.sort_stats("time")
- cumulative.print_stats(50)
+ total.print_stats(50)
if __name__ == '__main__':
#diagnose(sys.stdin.read())
- profile()
+ profile(parser="lxml")