Disabled "Ok"/"Update Geometry" button after first update. Solves issue #105.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# This script is for profiling Gerber.parse_lines() line by line.
|
||||
# Run kernprof -l -v gerber_parsing_line_profile_1.py
|
||||
|
||||
import sys
|
||||
sys.path.append('../../')
|
||||
|
||||
from camlib import *
|
||||
|
||||
log = logging.getLogger('base2')
|
||||
log.setLevel(logging.WARNING)
|
||||
|
||||
g = Gerber()
|
||||
g.parse_file("gerber1.gbr")
|
||||
@@ -10,6 +10,8 @@ log.setLevel(logging.WARNING)
|
||||
|
||||
g = Gerber()
|
||||
|
||||
cProfile.run('g.parse_file("gerber1.gbr")', 'gerber1_profile', sort='cumtime')
|
||||
#cProfile.run('g.parse_file("gerber1.gbr")', 'gerber1_profile', sort='cumtime')
|
||||
cProfile.run('g.parse_file("/home/jpcaram/flatcam_test_files/Gerbers/AVR_Transistor_Tester_silkscreen_top.GTO")',
|
||||
'gerber1_profile', sort='cumtime')
|
||||
p = pstats.Stats('gerber1_profile')
|
||||
p.strip_dirs().sort_stats('cumulative').print_stats(.1)
|
||||
Reference in New Issue
Block a user