mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-27 14:40:23 +00:00
Added simple script to profile testsuite execution.
This commit is contained in:
parent
b82474b940
commit
3189df3a65
16
python/js-beautify-profile
Executable file
16
python/js-beautify-profile
Executable 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()')
|
Loading…
Reference in New Issue
Block a user