Lines Matching refs:traceData
1179 TraceData traceData; in dumpTrace() local
1187 traceData.depth[i] = 2; // adjust for return from start function in dumpTrace()
1224 traceData.depth[threadId]++; in dumpTrace()
1232 printDepth = traceData.depth[threadId]; in dumpTrace()
1264 traceData.depth[threadId]--; /* METHOD_TRACE_EXIT or METHOD_TRACE_UNROLL */ in dumpTrace()
1790 void createClassList(TraceData* traceData, MethodEntry **pMethods, int numMethods) in createClassList() argument
1802 traceData->numClasses = 0; in createClassList()
1812 traceData->numClasses += 1; in createClassList()
1817 if (traceData->numClasses == 0) { in createClassList()
1818 traceData->classes = NULL; in createClassList()
1823 traceData->classes = (ClassEntry *) malloc(sizeof(ClassEntry) * traceData->numClasses); in createClassList()
1826 memset(traceData->classes, 0, sizeof(ClassEntry) * traceData->numClasses); in createClassList()
1827 ClassEntry *pClass = traceData->classes; in createClassList()
1854 pClass = traceData->classes; in createClassList()
1893 void printClassProfiles(TraceData* traceData, uint64_t sumThreadTime) in printClassProfiles() argument
1910 if (traceData->numClasses == 0) { in printClassProfiles()
1928 ClassEntry *pClass = traceData->classes; in printClassProfiles()
1929 for (ii = 0; ii < traceData->numClasses; ++ii, ++pClass) { in printClassProfiles()
1948 pClasses = (ClassEntry**) malloc(sizeof(ClassEntry*) * traceData->numClasses); in printClassProfiles()
1949 for (ii = 0; ii < traceData->numClasses; ++ii) in printClassProfiles()
1950 pClasses[ii] = &traceData->classes[ii]; in printClassProfiles()
1953 qsort(pClasses, traceData->numClasses, sizeof(ClassEntry*), compareClassExclusive); in printClassProfiles()
1963 for (ii = 0; ii < traceData->numClasses; ++ii) { in printClassProfiles()
2058 void createUniqueMethodList(TraceData* traceData, MethodEntry **pMethods, int numMethods) in createUniqueMethodList() argument
2071 traceData->numUniqueMethods = 0; in createUniqueMethodList()
2076 traceData->numUniqueMethods += 1; in createUniqueMethodList()
2080 if (traceData->numUniqueMethods == 0) in createUniqueMethodList()
2084 int nbytes = sizeof(UniqueMethodEntry) * traceData->numUniqueMethods; in createUniqueMethodList()
2085 traceData->uniqueMethods = (UniqueMethodEntry *) malloc(nbytes); in createUniqueMethodList()
2088 memset(traceData->uniqueMethods, 0, nbytes); in createUniqueMethodList()
2089 UniqueMethodEntry *pUnique = traceData->uniqueMethods; in createUniqueMethodList()
2117 pUnique = traceData->uniqueMethods; in createUniqueMethodList()
2129 void printMethodProfiles(TraceData* traceData, uint64_t sumThreadTime) in printMethodProfiles() argument
2137 if (traceData->numUniqueMethods == 0) in printMethodProfiles()
2159 UniqueMethodEntry *pUnique = traceData->uniqueMethods; in printMethodProfiles()
2160 for (ii = 0; ii < traceData->numUniqueMethods; ++ii, ++pUnique) { in printMethodProfiles()
2178 int nbytes = sizeof(UniqueMethodEntry*) * traceData->numUniqueMethods; in printMethodProfiles()
2180 for (ii = 0; ii < traceData->numUniqueMethods; ++ii) in printMethodProfiles()
2181 pUniqueMethods[ii] = &traceData->uniqueMethods[ii]; in printMethodProfiles()
2184 qsort(pUniqueMethods, traceData->numUniqueMethods, sizeof(UniqueMethodEntry*), in printMethodProfiles()
2195 for (ii = 0; ii < traceData->numUniqueMethods; ++ii) { in printMethodProfiles()
2293 DataKeys* parseDataKeys(TraceData* traceData, const char* traceFileName, uint64_t* threadTime) in parseDataKeys() argument
2333 pStack = traceData->stacks[threadId]; in parseDataKeys()
2341 traceData->stacks[threadId] = pStack; in parseDataKeys()
2443 pStack = traceData->stacks[threadId]; in parseDataKeys()
2504 void profileTrace(TraceData* traceData, MethodEntry **pMethods, int numMethods, uint64_t sumThreadT… in profileTrace() argument
2515 createClassList(traceData, pMethods, numMethods); in profileTrace()
2516 printClassProfiles(traceData, sumThreadTime); in profileTrace()
2518 createUniqueMethodList(traceData, pMethods, numMethods); in profileTrace()
2519 printMethodProfiles(traceData, sumThreadTime); in profileTrace()