• Kevin Modzelewski's avatar
    Add the concept of stattimer "avoidability" · 2cbc3c4a
    Kevin Modzelewski authored
    ie roll up all the time into the most "avoidable" reason that we were doing it.
    For example, if we are doing something like calling slot_tp_getttro on a builtin
    type (very avoidable), roll up all the subsequent time (runtimeCall, etc) into
    the slot_tp_getattro timer.  But if we call runtimeCall where we couldn't avoid it
    (ex from the interpreter), log that separately.
    
    Not sure how helpful it will be but for this specific investigation it seems to
    somewhat work.  The idea of the "avoidability" is definitely pretty specific to
    the type of work that you are thinking of doing; the numbers I put in are for
    investigating slowpaths.
    
    Also, remove all the timers that we have on specific runtime functions (ex: listMul).
    I think we'll need another strategy for those.
    2cbc3c4a
list.cpp 35.6 KB