• asvitkine's avatar
    Make stack sampling profiler sample beyond startup. · 2d8b08c7
    asvitkine authored
    This expands the base sampling profiler API to make the client callback to be able
    to return new sampling params if another profiling collection should be started.
    
    Additionally, converts sampling profiler reporting to use a base::Feature rather
    than a field trial directly and adds a base::Feature param that specifies whether
    this new functionality should be used to do periodic sampling (at 1s intervals). This
    new functionality is not on by default, but can be enabled via a field trial.
    
    The new periodic samples will be added to UMA logs as they're received and
    will have PERIODIC_COLLECTION trigger specified in the proto.
    
    Adds a test for the new base profiler functionality.
    
    Also, updates profile_duration for non-periodic profiles to include the
    sampling_period, as that was previously not accounted for.
    
    Also fixes some existing lint warnings.
    
    BUG=735182
    
    Review-Url: https://codereview.chromium.org/2927593002
    Cr-Commit-Position: refs/heads/master@{#486906}
    2d8b08c7
call_stack_profile_metrics_provider.cc 20.9 KB