diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-03 11:05:50 -0400 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-03 11:05:50 -0400 |
commit | 57dd5f5898e46fa14c1376dcdf9df1ae83c13072 (patch) | |
tree | 9907eb8bf70c830abc7e5084e93a58835a259608 /bs4/diagnose.py | |
parent | 4cc522e01dae3fab54170060beef1389d528f6b6 (diff) |
Save another Element creation.
Diffstat (limited to 'bs4/diagnose.py')
-rw-r--r-- | bs4/diagnose.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bs4/diagnose.py b/bs4/diagnose.py index bd995c2..7c7ea7a 100644 --- a/bs4/diagnose.py +++ b/bs4/diagnose.py @@ -197,9 +197,8 @@ def profile(num_elements=100000, parser="lxml"): stats = pstats.Stats(filename) # stats.strip_dirs() - cumulative = stats.sort_stats("cumulative") - total = stats.sort_stats("time") - cumulative.print_stats('_html5lib|bs4', 50) + stats.sort_stats("cumulative") + stats.print_stats('_html5lib|bs4', 50) if __name__ == '__main__': #diagnose(sys.stdin.read()) |