Import Tcl-core 8.6.6 (as of svn r86089)

This commit is contained in:
Zachary Ware
2017-05-22 16:09:35 -05:00
parent d239d63057
commit 261a0e7c44
1835 changed files with 812202 additions and 0 deletions

24
tools/tsdPerf.tcl Normal file
View File

@@ -0,0 +1,24 @@
package require Thread
set ::tids [list]
for {set i 0} {$i < 4} {incr i} {
lappend ::tids [thread::create [string map [list IVALUE $i] {
set curdir [file dirname [info script]]
load [file join $curdir tsdPerf[info sharedlibextension]]
while 1 {
tsdPerfSet IVALUE
}
}]]
}
puts TIDS:$::tids
set curdir [file dirname [info script]]
load [file join $curdir tsdPerf[info sharedlibextension]]
tsdPerfSet 1234
while 1 {
puts "TIME:[time {set value [tsdPerfGet]} 1000] VALUE:$value"
}