• vadimt's avatar
    Creating a framework for suppressing pollution of the profiler data and... · 12f0f7db
    vadimt authored
    Creating a framework for suppressing pollution of the profiler data and applying for know cases of pollution.
    See the bug.
    
    The CL introduces TaskStopwatch that has to be used to measure run time for tasks. It takes care of double-counting
    run time in the nested-tasks case by subtracting run time of nested tasks from their parents. TaskStopwatch can be
    also used for subtracting other nested intervals, such as the time while a nested message pump runs. ThreadData::TallyADeath
    now takes a stopwatch parameter instead of start_time and end_time. This helps avoid mistakes when the interval passed up to
    the parent for exclusion is different from the interval for the current task duration.
    
    BUG=401560
    
    Review URL: https://codereview.chromium.org/445413003
    
    Cr-Commit-Position: refs/heads/master@{#294865}
    12f0f7db
task_annotator.cc 2.69 KB