Lines Matching refs:pStack
1481 void countRecursiveEntries(CallStack *pStack, int top, MethodEntry *method) in countRecursiveEntries() argument
1487 if (pStack->calls[ii].method == method) in countRecursiveEntries()
1492 void stackDump(CallStack *pStack, int top) in stackDump() argument
1497 MethodEntry *method = pStack->calls[ii].method; in stackDump()
1498 uint64_t entryTime = pStack->calls[ii].entryTime; in stackDump()
2322 CallStack *pStack; in parseDataKeys() local
2333 pStack = traceData->stacks[threadId]; in parseDataKeys()
2336 if (pStack == NULL) { in parseDataKeys()
2337 pStack = malloc(sizeof(CallStack)); in parseDataKeys()
2338 pStack->top = 0; in parseDataKeys()
2339 pStack->lastEventTime = currentTime; in parseDataKeys()
2340 pStack->threadStartTime = currentTime; in parseDataKeys()
2341 traceData->stacks[threadId] = pStack; in parseDataKeys()
2352 threadId, currentTime, action, pStack->threadStartTime, in parseDataKeys()
2354 pStack->top, method->className, method->methodName, in parseDataKeys()
2358 threadId, currentTime, action, pStack->threadStartTime, in parseDataKeys()
2360 pStack->top, method->className); in parseDataKeys()
2366 if (pStack->top >= MAX_STACK_DEPTH) { in parseDataKeys()
2373 if (pStack->top >= 1) in parseDataKeys()
2374 caller = pStack->calls[pStack->top - 1].method; in parseDataKeys()
2377 countRecursiveEntries(pStack, pStack->top, caller); in parseDataKeys()
2378 caller->elapsedExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2383 pStack->lastEventTime, in parseDataKeys()
2384 currentTime - pStack->lastEventTime); in parseDataKeys()
2387 caller->topExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2391 pStack->calls[pStack->top].method = method; in parseDataKeys()
2392 pStack->calls[pStack->top++].entryTime = currentTime; in parseDataKeys()
2398 if (pStack->top > 0) { in parseDataKeys()
2399 pStack->top -= 1; in parseDataKeys()
2400 entryTime = pStack->calls[pStack->top].entryTime; in parseDataKeys()
2401 if (method != pStack->calls[pStack->top].method) { in parseDataKeys()
2412 stackDump(pStack, pStack->top + 1); in parseDataKeys()
2418 if (pStack->top >= 1) in parseDataKeys()
2419 caller = pStack->calls[pStack->top - 1].method; in parseDataKeys()
2422 countRecursiveEntries(pStack, pStack->top, caller); in parseDataKeys()
2423 countRecursiveEntries(pStack, pStack->top, method); in parseDataKeys()
2426 method->elapsedExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2428 method->topExclusive += currentTime - pStack->lastEventTime; in parseDataKeys()
2432 pStack->lastEventTime = currentTime; in parseDataKeys()
2439 CallStack *pStack; in parseDataKeys() local
2443 pStack = traceData->stacks[threadId]; in parseDataKeys()
2446 if (pStack == NULL) in parseDataKeys()
2450 sumThreadTime += pStack->lastEventTime - pStack->threadStartTime; in parseDataKeys()
2452 for (ii = 0; ii < pStack->top; ++ii) { in parseDataKeys()
2456 caller = pStack->calls[ii - 1].method; in parseDataKeys()
2457 method = pStack->calls[ii].method; in parseDataKeys()
2458 countRecursiveEntries(pStack, ii, caller); in parseDataKeys()
2459 countRecursiveEntries(pStack, ii, method); in parseDataKeys()
2461 uint64_t entryTime = pStack->calls[ii].entryTime; in parseDataKeys()
2462 uint64_t elapsed = pStack->lastEventTime - entryTime; in parseDataKeys()