Started profiling project (Issue #109). Created first profiling script and included test gerber.

This commit is contained in:
jpcaram 2015-02-02 15:37:08 -05:00
parent a34ca26a24
commit 681996d1f6
3 changed files with 3060 additions and 1 deletions

View File

@ -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

View File

@ -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)