• Glauber Costa's avatar
    [offcputime] allow for the speficication of a threshold for collection (#697) · 5246458b
    Glauber Costa authored
    There are situations, specially when using non-folded mode, where we are
    interested only in very high latencies that happen due to blocking.
    
    While we can certainly filter out the very small ones out of the output, it is a
    lot more convenient to do this from the tool itself, as it would be difficult
    from an external filter to do this in one pass.
    
    But if we are to discard unused measurements, we can do even better: we can
    change the bpf code itself not to grab those traces, and gain a bit of
    efficiency in scenarios in which we are only concerned about peak latencies.
    
    This scheme can be easily extended to also allow a maximum cap in the latencies
    we are interested in.
    
    After this patch is applied, the options -m and -M can be used to set those
    limits respectively.
    
    Fixes: #588
    5246458b
offcputime.py 9.68 KB