Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Would be nice if the test could check that the pid was being set to something but not sure how you could do that (beyond checking that it's a number).
Apart from that, LGTM.
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
76 | Then the ThreadName field will lose const-ness, and I will also need to call llvm::get_thread_name in the constructor body, not the member initialization list. Would that be OK? | |
234 | The code above uses {}. According to http://llvm.org/docs/CodingStandards.html:
|
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
222 | This is not great but I guess it is ok... |
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
222 | What is? |
You can define ThreadName as SmallString<0> to avoid this function.