Lines Matching refs:traceData
1038 TraceData traceData; in dumpTrace() local
1047 traceData.depth[i] = 2; // adjust for return from start function in dumpTrace()
1086 traceData.depth[threadId]++; in dumpTrace()
1093 int32_t printDepth = traceData.depth[threadId]; in dumpTrace()
1122 traceData.depth[threadId]--; /* METHOD_TRACE_EXIT or METHOD_TRACE_UNROLL */ in dumpTrace()
1571 void createClassList(TraceData* traceData, MethodEntry** pMethods, int32_t numMethods) { in createClassList() argument
1580 traceData->numClasses = 0; in createClassList()
1590 traceData->numClasses += 1; in createClassList()
1595 if (traceData->numClasses == 0) { in createClassList()
1596 traceData->classes = nullptr; in createClassList()
1601 traceData->classes = new ClassEntry[traceData->numClasses]; in createClassList()
1604 memset(traceData->classes, 0, sizeof(ClassEntry) * traceData->numClasses); in createClassList()
1605 ClassEntry* pClass = traceData->classes; in createClassList()
1632 pClass = traceData->classes; in createClassList()
1664 void printClassProfiles(TraceData* traceData, uint64_t sumThreadTime) { in printClassProfiles() argument
1677 if (traceData->numClasses == 0) { in printClassProfiles()
1695 ClassEntry* pClass = traceData->classes; in printClassProfiles()
1696 for (int32_t ii = 0; ii < traceData->numClasses; ++ii, ++pClass) { in printClassProfiles()
1711 ClassEntry** pClasses = new ClassEntry*[traceData->numClasses]; in printClassProfiles()
1712 for (int32_t ii = 0; ii < traceData->numClasses; ++ii) in printClassProfiles()
1713 pClasses[ii] = &traceData->classes[ii]; in printClassProfiles()
1716 qsort(pClasses, traceData->numClasses, sizeof(ClassEntry*), compareClassExclusive); in printClassProfiles()
1729 for (int32_t ii = 0; ii < traceData->numClasses; ++ii) { in printClassProfiles()
1822 void createUniqueMethodList(TraceData* traceData, MethodEntry** pMethods, int32_t numMethods) { in createUniqueMethodList() argument
1830 traceData->numUniqueMethods = 0; in createUniqueMethodList()
1834 traceData->numUniqueMethods += 1; in createUniqueMethodList()
1838 if (traceData->numUniqueMethods == 0) return; in createUniqueMethodList()
1841 traceData->uniqueMethods = new UniqueMethodEntry[traceData->numUniqueMethods]; in createUniqueMethodList()
1844 memset(traceData->uniqueMethods, 0, sizeof(UniqueMethodEntry) * traceData->numUniqueMethods); in createUniqueMethodList()
1845 UniqueMethodEntry* pUnique = traceData->uniqueMethods; in createUniqueMethodList()
1870 pUnique = traceData->uniqueMethods; in createUniqueMethodList()
1881 void printMethodProfiles(TraceData* traceData, uint64_t sumThreadTime) { in printMethodProfiles() argument
1885 if (traceData->numUniqueMethods == 0) return; in printMethodProfiles()
1905 UniqueMethodEntry* pUnique = traceData->uniqueMethods; in printMethodProfiles()
1906 for (int32_t ii = 0; ii < traceData->numUniqueMethods; ++ii, ++pUnique) { in printMethodProfiles()
1920 UniqueMethodEntry** pUniqueMethods = new UniqueMethodEntry*[traceData->numUniqueMethods]; in printMethodProfiles()
1921 for (int32_t ii = 0; ii < traceData->numUniqueMethods; ++ii) in printMethodProfiles()
1922 pUniqueMethods[ii] = &traceData->uniqueMethods[ii]; in printMethodProfiles()
1925 qsort(pUniqueMethods, traceData->numUniqueMethods, sizeof(UniqueMethodEntry*), in printMethodProfiles()
1939 for (int32_t ii = 0; ii < traceData->numUniqueMethods; ++ii) { in printMethodProfiles()
2035 DataKeys* parseDataKeys(TraceData* traceData, const char* traceFileName, uint64_t* threadTime) { in parseDataKeys() argument
2070 CallStack* pStack = traceData->stacks[threadId]; in parseDataKeys()
2078 traceData->stacks[threadId] = pStack; in parseDataKeys()
2174 CallStack* pStack = traceData->stacks[threadId]; in parseDataKeys()
2229 void profileTrace(TraceData* traceData, MethodEntry** pMethods, int32_t numMethods, in profileTrace() argument
2240 createClassList(traceData, pMethods, numMethods); in profileTrace()
2241 printClassProfiles(traceData, sumThreadTime); in profileTrace()
2243 createUniqueMethodList(traceData, pMethods, numMethods); in profileTrace()
2244 printMethodProfiles(traceData, sumThreadTime); in profileTrace()