[PATCH] D60404: Improve hashing for time profiler

Takuto Ikuta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 8 18:18:12 PDT 2019


takuto.ikuta requested changes to this revision.
takuto.ikuta added inline comments.
This revision now requires changes to proceed.


================
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;
----------------
better to include header for StringMap?


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