[MacPorts] #69781: portindex: multi-threading appears bottlenecked for 10.13, 10.12, and perhaps earlier
MacPorts
noreply at macports.org
Sat May 4 14:01:18 UTC 2024
#69781: portindex: multi-threading appears bottlenecked for 10.13, 10.12, and
perhaps earlier
------------------------+--------------------
Reporter: mascguy | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.9.3
Resolution: | Keywords:
Port: portindex |
------------------------+--------------------
Comment (by jmroot):
If you want to just time how long different sections of code are taking to
execute, you can do something like this:
{{{#!tcl
# init:
set section somename
set firsttime [clock microseconds]
set prevtime [clock microseconds]
# between each section:
puts "section $section took [expr {[clock microseconds] - $prevtime}] µs"
set section anothername
set prevtime [clock microseconds]
# end:
puts "total took [expr {[clock microseconds] - $firsttime}] µs"
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69781#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list