• Alexei Filippov's avatar
    [cpu-profiler] Eagerly delete not used CodeEntry'es · c6c28f7a
    Alexei Filippov authored
    Currently ProfilerListener holds all the CodeEntries it ever
    created during the profiling session. It is not capable of removing
    entries corresponding to the code objects discarded by GC as there's
    no such code event.
    
    However it is sometimes possible to tell if a code object was GCed.
    Hook up to the CodeMap code entry removal and if the entry has never
    been hit by a sample we can safely delete it.
    
    As a bonus the CodeEntryInfo size has been reduced on x64, which also
    saves 8 x <number of code entries> bytes.
    
    BUG=v8:7719
    
    Change-Id: I988bc5b59f3fba07157a9f472cbcf68596fcd969
    Reviewed-on: https://chromium-review.googlesource.com/1054346Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
    Commit-Queue: Alexei Filippov <alph@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53222}
    c6c28f7a
Name
Last commit
Last update
..
OWNERS Loading commit data...
allocation-tracker.cc Loading commit data...
allocation-tracker.h Loading commit data...
circular-queue-inl.h Loading commit data...
circular-queue.h Loading commit data...
cpu-profiler-inl.h Loading commit data...
cpu-profiler.cc Loading commit data...
cpu-profiler.h Loading commit data...
heap-profiler.cc Loading commit data...
heap-profiler.h Loading commit data...
heap-snapshot-generator-inl.h Loading commit data...
heap-snapshot-generator.cc Loading commit data...
heap-snapshot-generator.h Loading commit data...
profile-generator-inl.h Loading commit data...
profile-generator.cc Loading commit data...
profile-generator.h Loading commit data...
profiler-listener.cc Loading commit data...
profiler-listener.h Loading commit data...
sampling-heap-profiler.cc Loading commit data...
sampling-heap-profiler.h Loading commit data...
strings-storage.cc Loading commit data...
strings-storage.h Loading commit data...
tick-sample.cc Loading commit data...
tick-sample.h Loading commit data...
tracing-cpu-profiler.cc Loading commit data...
tracing-cpu-profiler.h Loading commit data...
unbound-queue-inl.h Loading commit data...
unbound-queue.h Loading commit data...