#!/bin/sh # -*- tcl -*- \ exec tclsh "$0" ${1+"$@"} # Functions to ignore in the stack testing cause they are not relevant to cisco # ============================================================================= package require struct package require report set in [lindex $argv 0] set if [open $in r] set cut [lindex $argv 1] array set sz {} array set fn {} array set fi {} array set cc {} if {1} { set ign { dissect exec condissect lacon miss freenfa DoRenameFile CopyFile CopyFileAtts DoCopyFile TestfilehandlerCmd TclpGetCwd TclpMatchFilesTypes TclFileAttrsCmd CheckAccess TclDoGlob Tcl_GetChannelNamesEx StoreStatData TclpListVolumes Tcl_FileObjCmd compile TestparsevarnameObjCmd TestsaveresultCmd TestexprparserObjCmd CopyRenameOneFile TestparserObjCmd Tcl_GetHostName Tcl_EvalFile TclpCreateProcess TcpGetOptionProc TclpCreatePipe cleanst rfree freev AliasCreate FileCopyRename TraverseUnixTree SlaveHidden SlaveInvokeHidden TraversalCopy TraversalDelete AliasDelete AliasList SlaveExpose SlaveHide SlaveEval TclFileMakeDirs } } else { set ign {} } foreach i $ign {set ig($i) .} while {![eof $if]} { gets $if line if {[eof $if]} {break} foreach {dummy fun file line dummy usage dummy caller} [split $line] break set fi($fun) [file tail $file] if {[info exists ig($fun)]} {continue} if {$cut != {}} { if {$usage < $cut} { continue } } set kf $fun set ks $usage set kcc $fun,$usage set df $usage set ds [list $fun $caller] set dcc $caller if {![info exists fn($kf)]} { set fn($kf) [list $df] } elseif {[lsearch -exact $fn($kf) $df] < 0} { lappend fn($kf) $df } if {![info exists sz($ks)]} { set sz($ks) [list $ds] } elseif {[lsearch -exact $sz($ks) $ds] < 0} { lappend sz($ks) $ds } if {![info exists cc($kcc)]} { set cc($kcc) [list $dcc] } elseif {[lsearch -exact $cc($kcc) $dcc] < 0} { lappend cc($kcc) $dcc } } ::report::defstyle html {} { set c [columns] set cl $c ; incr cl -1 data set "
$f | " incr n if {$n == 5} { puts stdout "