nsmcp::CachedLogSearch method finishScanMetrics (protected)

 <instance of nsmcp::CachedLogSearch[i]> finishScanMetrics scope \
    [ previous ]

Defined in /usr/local/ns/tcl/nsmcp/log-summary.tcl

Parameters:
scope (required)
previous (optional)

Testcases:
No testcase defined.
Source code:
set elapsed [expr {max(0,[clock clicks -microseconds]-${:scanStarted})}]
set accounted 0
foreach value [dict values ${:scanPhases}] {
    incr accounted $value
}
dict set :scanPhases other [expr {max(0,$elapsed-$accounted)}]
if {$previous ne ""} {
    dict for {key value} [dict get $previous phaseMicroseconds] {
        dict incr :scanPhases $key $value
    }
    dict for {key value} [dict get $previous io] {
        dict incr :scanIO $key $value
    }
    incr elapsed [dict get $previous totalMicroseconds]
}
return [dict create scope $scope totalMicroseconds $elapsed  phaseMicroseconds ${:scanPhases} io ${:scanIO}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: