• Peter Marshall's avatar
    [cpu-profiler] Use unordered_map instead of custom hashmap in sampler · 4dbdeea2
    Peter Marshall authored
    There is no reason to use the custom map here anymore. This lets us
    get rid of the custom hash and a lot of casts.
    
    We can also store the SamplerList by value in the map rather than a
    pointer, then we don't have to manage the lifetime explicitly.
    
    Also move the SamplerList typedef inside of SamplerManager because it's
    an internal detail. Remove the include for <map> because we aren't using
    this anywhere anyway.
    
    Change-Id: I787a1b6c3ffc331ec3f36e66d5e07bd115c4cbb4
    Reviewed-on: https://chromium-review.googlesource.com/c/1419317Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#58945}
    4dbdeea2
Name
Last commit
Last update
..
DEPS Loading commit data...
sampler.cc Loading commit data...
sampler.h Loading commit data...