Lines Matching refs:int32_t
40 int32_t versionNumber;
133 int32_t threadId;
141 int32_t numCalls;
148 int32_t numMethods;
150 int32_t numCalls[2]; /* 0=normal, 1=recursive */
155 int32_t numMethods;
157 int32_t numCalls[2]; /* 0=normal, 1=recursive */
169 int32_t lineNum;
176 int32_t numCalls[2]; /* 0=normal, 1=recursive */
177 int32_t index; /* used after sorting to number methods */
178 int32_t recursiveEntries; /* number of entries on the stack */
179 int32_t graphState; /* used when graphing to see if this method has been visited before */
188 int32_t numThreads;
190 int32_t numMethods;
203 int32_t top;
223 int32_t keepDotFile;
224 int32_t dump;
225 int32_t outputHtml;
227 int32_t threshold;
231 int32_t numClasses;
234 int32_t depth[MAX_THREADS];
235 int32_t numUniqueMethods;
249 char* htmlEscape(const char* src, char* dest, int32_t len) { in htmlEscape()
254 int32_t nbytes = 0; in htmlEscape()
323 int32_t compareElapsedExclusive(const void* a, const void* b) { in compareElapsedExclusive()
334 int32_t result = strcmp(methodA->className, methodB->className); in compareElapsedExclusive()
353 int32_t compareElapsedInclusive(const void* a, const void* b) { in compareElapsedInclusive()
364 int32_t result = strcmp(methodA->className, methodB->className); in compareElapsedInclusive()
383 int32_t compareTimedMethod(const void* a, const void* b) { in compareTimedMethod()
396 int32_t result = strcmp(methodA->className, methodB->className); in compareTimedMethod()
415 int32_t compareClassNames(const void* a, const void* b) { in compareClassNames()
418 int32_t result = strcmp(methodA->className, methodB->className); in compareClassNames()
433 int32_t compareClassExclusive(const void* a, const void* b) { in compareClassExclusive()
444 int32_t result = strcmp(classA->className, classB->className); in compareClassExclusive()
463 int32_t compareMethodNames(const void* a, const void* b) { in compareMethodNames()
469 int32_t result = strcmp(methodA->methodName, methodB->methodName); in compareMethodNames()
487 int32_t compareUniqueExclusive(const void* a, const void* b) { in compareUniqueExclusive()
498 int32_t result = strcmp(uniqueA->methods[0]->className, uniqueB->methods[0]->className); in compareUniqueExclusive()
529 int32_t findNextChar(const char* data, int32_t len, char lookFor) { in findNextChar()
547 int32_t countLinesToToken(const char* data, int32_t len) { in countLinesToToken()
548 int32_t count = 0; in countLinesToToken()
549 int32_t next; in countLinesToToken()
567 int32_t checkToken(const char* data, int32_t len, const char* cmpStr) { in checkToken()
568 int32_t cmpLen = strlen(cmpStr); in checkToken()
569 int32_t next; in checkToken()
590 int64_t parseVersion(DataKeys* pKeys, int64_t offset, int32_t verbose) { in parseVersion()
595 int32_t next = checkToken(data, dataEnd - data, "version"); in parseVersion()
603 int32_t count = countLinesToToken(data, dataEnd - data); in parseVersion()
620 for (int32_t i = 1; i < count; i++) { in parseVersion()
639 int32_t next = checkToken(data, dataEnd - data, "threads"); in parseThreads()
646 int32_t count = countLinesToToken(data, dataEnd - data); in parseThreads()
659 for (int32_t i = 0; i < count; i++) { in parseThreads()
664 int32_t tab = findNextChar(data, next, '\t'); in parseThreads()
685 int32_t next = checkToken(data, dataEnd - data, "methods"); in parseMethods()
693 int32_t count = countLinesToToken(data, dataEnd - data); in parseMethods()
713 for (int32_t i = UNKNOWN_INDEX + 1; i < count; i++) { in parseMethods()
718 int32_t tab1 = findNextChar(data, next, '\t'); in parseMethods()
719 int32_t tab2 = findNextChar(data + (tab1 + 1), next - (tab1 + 1), '\t'); in parseMethods()
720 int32_t tab3 = findNextChar(data + (tab1 + tab2 + 2), next - (tab1 + tab2 + 2), '\t'); in parseMethods()
721 int32_t tab4 = findNextChar(data + (tab1 + tab2 + tab3 + 3), in parseMethods()
723 int32_t tab5 = findNextChar(data + (tab1 + tab2 + tab3 + tab4 + 4), in parseMethods()
784 int32_t next = checkToken(data, dataEnd - data, "end"); in parseEnd()
795 static int32_t compareThreads(const void* thread1, const void* thread2) { in compareThreads()
807 static int32_t compareMethods(const void* meth1, const void* meth2) { in compareMethods()
822 DataKeys* parseKeys(FILE* fp, int32_t verbose) { in parseKeys()
886 for (int32_t i = 0; i < pKeys->numThreads; i++) { in parseKeys()
897 for (int32_t i = 0; i < pKeys->numMethods; i++) { in parseKeys()
944 int32_t parseDataHeader(FILE* fp, DataHeader* pHeader) { in parseDataHeader()
949 int32_t bytesToRead = pHeader->offsetToData - 16; in parseDataHeader()
975 int32_t lo = 0; in lookupMethod()
976 int32_t hi = pKeys->numMethods - 1; in lookupMethod()
979 int32_t mid = (hi + lo) / 2; in lookupMethod()
999 int32_t readDataRecord(FILE* dataFp, DataHeader* dataHeader, int32_t* threadId, in readDataRecord()
1001 int32_t id; in readDataRecord()
1002 int32_t bytesToRead = dataHeader->recordSize; in readDataRecord()
1046 for (int32_t i = 0; i < MAX_THREADS; i++) in dumpTrace()
1071 int32_t threadId; in dumpTrace()
1077 int32_t action = METHOD_ACTION(methodVal); in dumpTrace()
1084 int32_t mismatch = 0; in dumpTrace()
1093 int32_t printDepth = traceData.depth[threadId]; in dumpTrace()
1145 int32_t childIsRecursive = (child->recursiveEntries > 0); in addInclusiveTime()
1146 int32_t parentIsRecursive = (parent->recursiveEntries > 1); in addInclusiveTime()
1221 TimedMethod* sortTimedMethodList(TimedMethod* list, int32_t* num) { in sortTimedMethodList()
1224 int32_t num_entries = 0; in sortTimedMethodList()
1230 int32_t ii; in sortTimedMethodList()
1244 static const int32_t kIsRecursive = 1;
1249 void printInclusiveMethod(MethodEntry* method, TimedMethod* list, int32_t numCalls, int32_t flags) { in printInclusiveMethod()
1253 int32_t num_spaces = strlen(spaces); in printInclusiveMethod()
1260 int32_t num; in printInclusiveMethod()
1271 int32_t len = strlen(buf); in printInclusiveMethod()
1279 int32_t nCalls = numCalls; in printInclusiveMethod()
1307 void countRecursiveEntries(CallStack* pStack, int32_t top, MethodEntry* method) { in countRecursiveEntries()
1309 for (int32_t ii = 0; ii < top; ++ii) { in countRecursiveEntries()
1314 void stackDump(CallStack* pStack, int32_t top) { in stackDump()
1315 for (int32_t ii = 0; ii < top; ++ii) { in stackDump()
1347 void printExclusiveProfile(MethodEntry** pMethods, int32_t numMethods, uint64_t sumThreadTime) { in printExclusiveProfile()
1367 for (int32_t ii = 0; ii < numMethods; ++ii) pMethods[ii]->index = ii; in printExclusiveProfile()
1386 for (int32_t ii = 0; ii < numMethods; ++ii) { in printExclusiveProfile()
1418 int32_t checkThreshold(MethodEntry* parent, MethodEntry* child) { in checkThreshold()
1465 snprintf(path, FILENAME_MAX, "dot-%d-%d.dot", (int32_t)time(nullptr), rand()); in createInclusiveProfileGraphNew()
1489 void printInclusiveProfile(MethodEntry** pMethods, int32_t numMethods, uint64_t sumThreadTime) { in printInclusiveProfile()
1517 for (int32_t ii = 0; ii < numMethods; ++ii) { in printInclusiveProfile()
1537 int32_t numCalls = method->numCalls[0] + method->numCalls[1]; in printInclusiveProfile()
1571 void createClassList(TraceData* traceData, MethodEntry** pMethods, int32_t numMethods) { in createClassList()
1581 for (int32_t ii = 0; ii < numMethods; ++ii) { in createClassList()
1607 int32_t prevNumMethods = 0; in createClassList()
1608 for (int32_t ii = 0; ii < numMethods; ++ii) { in createClassList()
1624 int32_t nextMethod = 0; in createClassList()
1625 for (int32_t ii = 0; ii < numMethods; ++ii) { in createClassList()
1647 void printHtmlField(char* buf, int32_t width) { in printHtmlField()
1648 int32_t leadingSpaces = 1; in printHtmlField()
1653 int32_t len = strlen(buf); in printHtmlField()
1654 int32_t numSpaces = width - len; in printHtmlField()
1660 for (int32_t ii = 0; ii < numSpaces; ++ii) printf(" "); in printHtmlField()
1696 for (int32_t ii = 0; ii < traceData->numClasses; ++ii, ++pClass) { in printClassProfiles()
1698 int32_t numMethods = pClass->numMethods; in printClassProfiles()
1699 for (int32_t jj = 0; jj < numMethods; ++jj) { in printClassProfiles()
1712 for (int32_t ii = 0; ii < traceData->numClasses; ++ii) in printClassProfiles()
1729 for (int32_t ii = 0; ii < traceData->numClasses; ++ii) { in printClassProfiles()
1772 int32_t numMethods = pClass->numMethods; in printClassProfiles()
1775 for (int32_t jj = 0; jj < numMethods; ++jj) { in printClassProfiles()
1822 void createUniqueMethodList(TraceData* traceData, MethodEntry** pMethods, int32_t numMethods) { in createUniqueMethodList()
1831 for (int32_t ii = 0; ii < numMethods; ++ii) { in createUniqueMethodList()
1847 int32_t prevNumMethods = 0; in createUniqueMethodList()
1848 for (int32_t ii = 0; ii < numMethods; ++ii) { in createUniqueMethodList()
1864 int32_t nextMethod = 0; in createUniqueMethodList()
1865 for (int32_t ii = 0; ii < numMethods; ++ii) { in createUniqueMethodList()
1906 for (int32_t ii = 0; ii < traceData->numUniqueMethods; ++ii, ++pUnique) { in printMethodProfiles()
1907 int32_t numMethods = pUnique->numMethods; in printMethodProfiles()
1908 for (int32_t jj = 0; jj < numMethods; ++jj) { in printMethodProfiles()
1921 for (int32_t ii = 0; ii < traceData->numUniqueMethods; ++ii) in printMethodProfiles()
1939 for (int32_t ii = 0; ii < traceData->numUniqueMethods; ++ii) { in printMethodProfiles()
1982 int32_t numMethods = pUnique->numMethods; in printMethodProfiles()
1985 for (int32_t jj = 0; jj < numMethods; ++jj) { in printMethodProfiles()
2060 int32_t threadId; in parseDataKeys()
2066 int32_t action = METHOD_ACTION(methodVal); in parseDataKeys()
2173 for (int32_t threadId = 0; threadId < MAX_THREADS; ++threadId) { in parseDataKeys()
2182 for (int32_t ii = 0; ii < pStack->top; ++ii) { in parseDataKeys()
2218 for (int32_t ii = 0; ii < dataKeys->numMethods; ++ii) { in parseMethodEntries()
2229 void profileTrace(TraceData* traceData, MethodEntry** pMethods, int32_t numMethods, in profileTrace()
2251 int32_t compareMethodNamesForDiff(const void* a, const void* b) { in compareMethodNamesForDiff()
2257 int32_t result = strcmp(methodA->methodName, methodB->methodName); in compareMethodNamesForDiff()
2267 int32_t findMatch(MethodEntry** methods, int32_t size, MethodEntry* matchThis) { in findMatch()
2268 for (int32_t i = 0; i < size; i++) { in findMatch()
2283 int32_t compareDiffEntriesExculsive(const void* a, const void* b) { in compareDiffEntriesExculsive()
2296 int32_t compareDiffEntriesInculsive(const void* a, const void* b) { in compareDiffEntriesInculsive()
2337 for (int32_t i = 0; i < d1->numMethods; ++i) { in createDiff()
2342 for (int32_t i = 0; i < d2->numMethods; ++i) { in createDiff()
2346 int32_t max = (d1->numMethods < d2->numMethods) ? d2->numMethods : d1->numMethods; in createDiff()
2355 int32_t matches = 0; in createDiff()
2357 for (int32_t i = 0; i < d1->numMethods; i++) { in createDiff()
2358 int32_t match = findMatch(methods2, d2->numMethods, methods1[i]); in createDiff()
2488 for (int32_t i = 0; i < d1->numMethods; ++i) { in createDiff()
2500 for (int32_t i = 0; i < d2->numMethods; ++i) { in createDiff()
2509 int32_t usage(const char* program) { in usage()
2534 int32_t parseOptions(int32_t argc, char** argv) { in parseOptions()
2536 int32_t opt = getopt(argc, argv, "d:hg:kos:t:"); in parseOptions()
2570 int32_t main(int32_t argc, char** argv) { in main()