[llvm] r364439 - [xray] Remove usage of procid_t
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 08:42:43 PDT 2019
Author: aganea
Date: Wed Jun 26 08:42:42 2019
New Revision: 364439
URL: http://llvm.org/viewvc/llvm-project?rev=364439&view=rev
Log:
[xray] Remove usage of procid_t
Differential Revision: https://reviews.llvm.org/D61946
Modified:
llvm/trunk/tools/llvm-xray/xray-account.h
llvm/trunk/tools/llvm-xray/xray-graph.h
Modified: llvm/trunk/tools/llvm-xray/xray-account.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-account.h?rev=364439&r1=364438&r2=364439&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-xray/xray-account.h (original)
+++ llvm/trunk/tools/llvm-xray/xray-account.h Wed Jun 26 08:42:42 2019
@@ -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;
}
Modified: llvm/trunk/tools/llvm-xray/xray-graph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-graph.h?rev=364439&r1=364438&r2=364439&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-xray/xray-graph.h (original)
+++ llvm/trunk/tools/llvm-xray/xray-graph.h Wed Jun 26 08:42:42 2019
@@ -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:
More information about the llvm-commits
mailing list