diff options
| author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-06-26 15:42:42 +0000 |
|---|---|---|
| committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-06-26 15:42:42 +0000 |
| commit | d1a34f314d0dba7e49292b3ab3f223779fde359b (patch) | |
| tree | 235ae430d0740cc3cd5032483f16d9ebaed97624 /llvm/tools | |
| parent | 90079977ac556caca1b8c0c918d56889134ab659 (diff) | |
| download | bcm5719-llvm-d1a34f314d0dba7e49292b3ab3f223779fde359b.tar.gz bcm5719-llvm-d1a34f314d0dba7e49292b3ab3f223779fde359b.zip | |
[xray] Remove usage of procid_t
Differential Revision: https://reviews.llvm.org/D61946
llvm-svn: 364439
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-xray/xray-account.h | 12 | ||||
| -rw-r--r-- | llvm/tools/llvm-xray/xray-graph.h | 3 |
2 files changed, 3 insertions, 12 deletions
diff --git a/llvm/tools/llvm-xray/xray-account.h b/llvm/tools/llvm-xray/xray-account.h index 9c9f86c8fcf..b63ecc59b71 100644 --- a/llvm/tools/llvm-xray/xray-account.h +++ b/llvm/tools/llvm-xray/xray-account.h @@ -28,12 +28,11 @@ namespace xray { class LatencyAccountant { public: typedef std::map<int32_t, std::vector<uint64_t>> FunctionLatencyMap; - typedef std::map<llvm::sys::procid_t, std::pair<uint64_t, uint64_t>> + typedef std::map<uint32_t, std::pair<uint64_t, uint64_t>> PerThreadMinMaxTSCMap; typedef std::map<uint8_t, std::pair<uint64_t, uint64_t>> PerCPUMinMaxTSCMap; typedef std::vector<std::pair<int32_t, uint64_t>> FunctionStack; - typedef std::map<llvm::sys::procid_t, FunctionStack> - PerThreadFunctionStackMap; + typedef std::map<uint32_t, FunctionStack> PerThreadFunctionStackMap; private: PerThreadFunctionStackMap PerThreadFunctionStack; @@ -77,13 +76,6 @@ public: /// bool accountRecord(const XRayRecord &Record); - const FunctionStack *getThreadFunctionStack(llvm::sys::procid_t TId) const { - auto I = PerThreadFunctionStack.find(TId); - if (I == PerThreadFunctionStack.end()) - return nullptr; - return &I->second; - } - const PerThreadFunctionStackMap &getPerThreadFunctionStack() const { return PerThreadFunctionStack; } diff --git a/llvm/tools/llvm-xray/xray-graph.h b/llvm/tools/llvm-xray/xray-graph.h index 79e5d8fa422..23372d40f05 100644 --- a/llvm/tools/llvm-xray/xray-graph.h +++ b/llvm/tools/llvm-xray/xray-graph.h @@ -78,8 +78,7 @@ public: using FunctionStack = SmallVector<FunctionAttr, 4>; - using PerThreadFunctionStackMap = - DenseMap<llvm::sys::procid_t, FunctionStack>; + using PerThreadFunctionStackMap = DenseMap<uint32_t, FunctionStack>; class GraphT : public Graph<FunctionStats, CallStats, int32_t> { public: |

