• bgirard's avatar
    Add StartProfiling to filter out v8 warm up · 93557496
    bgirard authored
    v8.cpu_profiler has a long and variable warm up period. If you look in
    tracing that time shows up under V8.Execute which is very misleading. By
    adding a tracing category for the time spent in
    CpuProfiler::StartProfiling the warm up time can be easily identified or
    even filtered out.
    
    With this tracing event the block in StartProfiling correctly described
    the time spent prepare v8.cpu_profiler out from V8.Execute
    
    Test by collecting a trace with V8.Execute and look at when a trace
    starts generating v8 samples.
    
    BUG=chromium:733853
    
    Review-Url: https://codereview.chromium.org/2950543002
    Cr-Commit-Position: refs/heads/master@{#46393}
    93557496
cpu-profiler.cc 12 KB