Lines Matching refs:pStack

1303 void countRecursiveEntries(CallStack* pStack, int32_t top, MethodEntry* method) {  in countRecursiveEntries()  argument
1306 if (pStack->calls[ii].method == method) method->recursiveEntries += 1; in countRecursiveEntries()
1310 void stackDump(CallStack* pStack, int32_t top) { in stackDump() argument
1312 MethodEntry* method = pStack->calls[ii].method; in stackDump()
1313 uint64_t entryTime = pStack->calls[ii].entryTime; in stackDump()
2066 CallStack* pStack = traceData->stacks[threadId]; in parseDataKeys() local
2069 if (pStack == nullptr) { in parseDataKeys()
2070 pStack = new CallStack(); in parseDataKeys()
2071 pStack->top = 0; in parseDataKeys()
2072 pStack->lastEventTime = currentTime; in parseDataKeys()
2073 pStack->threadStartTime = currentTime; in parseDataKeys()
2074 traceData->stacks[threadId] = pStack; in parseDataKeys()
2084 threadId, currentTime, action, pStack->threadStartTime, in parseDataKeys()
2086 pStack->top, method->className, method->methodName, in parseDataKeys()
2090 threadId, currentTime, action, pStack->threadStartTime, in parseDataKeys()
2092 pStack->top, method->className); in parseDataKeys()
2098 if (pStack->top >= MAX_STACK_DEPTH) { in parseDataKeys()
2105 if (pStack->top >= 1) in parseDataKeys()
2106 caller = pStack->calls[pStack->top - 1].method; in parseDataKeys()
2109 countRecursiveEntries(pStack, pStack->top, caller); in parseDataKeys()
2110 caller->elapsedExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2115 pStack->lastEventTime, in parseDataKeys()
2116 currentTime - pStack->lastEventTime); in parseDataKeys()
2119 caller->topExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2123 pStack->calls[pStack->top].method = method; in parseDataKeys()
2124 pStack->calls[pStack->top++].entryTime = currentTime; in parseDataKeys()
2130 if (pStack->top > 0) { in parseDataKeys()
2131 pStack->top -= 1; in parseDataKeys()
2132 entryTime = pStack->calls[pStack->top].entryTime; in parseDataKeys()
2133 if (method != pStack->calls[pStack->top].method) { in parseDataKeys()
2141 stackDump(pStack, pStack->top + 1); in parseDataKeys()
2147 if (pStack->top >= 1) in parseDataKeys()
2148 caller = pStack->calls[pStack->top - 1].method; in parseDataKeys()
2151 countRecursiveEntries(pStack, pStack->top, caller); in parseDataKeys()
2152 countRecursiveEntries(pStack, pStack->top, method); in parseDataKeys()
2155 method->elapsedExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2157 method->topExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2161 pStack->lastEventTime = currentTime; in parseDataKeys()
2170 CallStack* pStack = traceData->stacks[threadId]; in parseDataKeys() local
2173 if (pStack == nullptr) continue; in parseDataKeys()
2176 sumThreadTime += pStack->lastEventTime - pStack->threadStartTime; in parseDataKeys()
2178 for (int32_t ii = 0; ii < pStack->top; ++ii) { in parseDataKeys()
2182 caller = pStack->calls[ii - 1].method; in parseDataKeys()
2183 MethodEntry* method = pStack->calls[ii].method; in parseDataKeys()
2184 countRecursiveEntries(pStack, ii, caller); in parseDataKeys()
2185 countRecursiveEntries(pStack, ii, method); in parseDataKeys()
2187 uint64_t entryTime = pStack->calls[ii].entryTime; in parseDataKeys()
2188 uint64_t elapsed = pStack->lastEventTime - entryTime; in parseDataKeys()