Added simple script to profile testsuite execution.

This commit is contained in:
Stefano Sanfilippo 2011-10-12 15:56:10 +02:00
parent b82474b940
commit 3189df3a65

16
python/js-beautify-profile Executable file
View File

@ -0,0 +1,16 @@
#! /usr/bin/env python
import sys
import unittest
#Speedup things...
try:
import cProfile as profile
except ImportError:
import profile
def run():
sys.argv.append('discover')
unittest.main()
profile.run('run()')