[PATCH] D60404: Improve hashing for time profiler
Anton Afanasyev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 20:57:42 PDT 2019
anton-afanasyev added inline comments.
================
Comment at: llvm/lib/Support/TimeProfiler.cpp:150
std::vector<Entry> Entries;
- std::unordered_map<std::string, DurationType> TotalPerName;
- std::unordered_map<std::string, size_t> CountPerName;
+ StringMap<CountAndDurationType> CountAndTotalPerName;
time_point<steady_clock> StartTime;
----------------
takuto.ikuta wrote:
> better to include header for StringMap?
Yes, thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60404/new/
https://reviews.llvm.org/D60404
More information about the llvm-commits
mailing list