Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 62f5fe47171d7610a3f2337e46e0bce5af885220bd923a612cda612ace72f6d4
Ticket: 48a7a56dda84478202d547f61746d8d646aa7d8d
Documentation of timerate -overhead needs some detail
User & Date: sebres on 2025-01-21 16:39:15
Changes

  1. icomment:
    Alternatively, [98b8512f2f85cb49] may fix this on the code side (not the documentation side) in the form that <code>-overhead 0</code> becomes superfluous or rather will be unexpected anymore to estimate the overhead (in calibrated timerate). The whole overhead considered by timerate call is then a sum of both, the given with <code>-overhead</code> value and the internal value estimated by calibration. With other words, the <code>-overhead 0</code> must no longer be used in that case to measure the overhead with previously calibrated timerate.
    
    Pros:
    
      * don't need to know whether it was calibrated or not, <code>-overhead 0</code> becomes redundant;
      * calibration of empty evaluation (cost of invocation) wouldn't reflect in estimated overhead, it becomes hidden now.
    
    Cons:
    
      * a bit backwards incompatible; 
      * possibly unwanted behaviour under some circumstances - it'd indirectly depend on the calibration, which did before overhead measurement, if it changes later, the overhead may be wrong (but such "circumstances" are rather artificial thing, imho;
      * the estimated overhead doesn't reflect the calibration overhead anymore - it is hidden now for any case.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"