Started profiling project (Issue #109). Created first profiling script and included test gerber.
This commit is contained in:
parent
a34ca26a24
commit
681996d1f6
|
@ -191,7 +191,6 @@ class FlatCAMGUI(QtGui.QMainWindow):
|
|||
# self.right_layout.setContentsMargins(0, 0, 0, 0)
|
||||
right_widget.setLayout(self.right_layout)
|
||||
|
||||
|
||||
################
|
||||
### Info bar ###
|
||||
################
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,15 @@
|
|||
import cProfile
|
||||
import pstats
|
||||
import sys
|
||||
sys.path.append('../../')
|
||||
|
||||
from camlib import *
|
||||
|
||||
log = logging.getLogger('base2')
|
||||
log.setLevel(logging.WARNING)
|
||||
|
||||
g = Gerber()
|
||||
|
||||
cProfile.run('g.parse_file("gerber1.gbr")', 'gerber1_profile', sort='cumtime')
|
||||
p = pstats.Stats('gerber1_profile')
|
||||
p.strip_dirs().sort_stats('cumulative').print_stats(.1)
|
Loading…
Reference in New Issue