equal
deleted
inserted
replaced
2869 try: |
2869 try: |
2870 u.warn(_('exception raised - generating profile ' |
2870 u.warn(_('exception raised - generating profile ' |
2871 'anyway\n')) |
2871 'anyway\n')) |
2872 except: |
2872 except: |
2873 pass |
2873 pass |
|
2874 raise |
2874 finally: |
2875 finally: |
2875 prof.close() |
2876 prof.close() |
2876 stats = hotshot.stats.load("hg.prof") |
2877 stats = hotshot.stats.load("hg.prof") |
2877 stats.strip_dirs() |
2878 stats.strip_dirs() |
2878 stats.sort_stats('time', 'calls') |
2879 stats.sort_stats('time', 'calls') |