Overview
| Artifact ID: | 73654c2add5e16f300ca323c6c14207df21257eb |
|---|---|
| Ticket: | 1353858fffffffffffffffffffffffffffffffff
windows: timing granularity is poor on many systems |
| User & Date: | matt-newman on 2005-11-11 22:03:00 |
Changes
- icomment:
Logged In: YES user_id=1333796 I don't think you quite follow - on *all* the MP hyperthreaded systems I have tested from Dell and HP the criteria fails and it falls back to 10ms granularity. Also PerfCounters is plain flawed on MP boxes anyway due to the fact that unless your process is locked on on CPU the numbers returned by PerfCounters depend on which CPU your code is executing on at that momement! If you want sub-1ms timing for profiling purposes that is entirely a different issue from the primary timing sub-system. When we profile us have an extension that works like the tcl [time] command, but does two things to make the results predicable - 1. it locks the process onto a cpu (non-HT) and uses perf-counters for the extra resolution - this yields excellent results for profiling... Also another thing to consider, if you like I, ship commercial server processes that heavily use [after] it is not acceptable to have the timing of a [after 1] be 10ms on some systems and not others - it undermines the entire design of the application. So in considering this patch, I ask you to seperate your (valid) concerns about good profiling, from the more general issues of a highly time- dependent event loop. Matt
- login: "matt-newman"
- mimetype: "text/plain"
- username: "matt-newman"