Lines Matching refs:ThreadStack
218 auto &ThreadStack = PerThreadFunctionStack[Record.TId]; in accountRecord() local
224 ThreadStack.push_back({Record.FuncId, Record.TSC}); in accountRecord()
231 if (ThreadStack.size() == 0 || ThreadStack.back().FuncId != Record.FuncId) { in accountRecord()
236 ThreadStack.rbegin(), ThreadStack.rend(), in accountRecord()
238 if (Parent == ThreadStack.rend()) in accountRecord()
243 while (ThreadStack.back().FuncId != Record.FuncId) { in accountRecord()
244 TimestampT D = diff(ThreadStack.back().TSC, Record.TSC); in accountRecord()
245 VertexIdentifier TopFuncId = ThreadStack.back().FuncId; in accountRecord()
246 ThreadStack.pop_back(); in accountRecord()
247 assert(ThreadStack.size() != 0); in accountRecord()
248 EdgeIdentifier EI(ThreadStack.back().FuncId, TopFuncId); in accountRecord()
255 uint64_t D = diff(ThreadStack.back().TSC, Record.TSC); in accountRecord()
256 ThreadStack.pop_back(); in accountRecord()
257 VertexIdentifier VI = ThreadStack.empty() ? 0 : ThreadStack.back().FuncId; in accountRecord()
469 for (const auto &ThreadStack : GR.getPerThreadFunctionStack()) { in getGraphRenderer() local
470 errs() << "Thread ID: " << ThreadStack.first << "\n"; in getGraphRenderer()
471 auto Level = ThreadStack.second.size(); in getGraphRenderer()
472 for (const auto &Entry : llvm::reverse(ThreadStack.second)) in getGraphRenderer()