Lines Matching refs:gOptions

239 static Options gOptions;  variable
1045 FILE* dataFp = fopen(gOptions.traceFileName, "rb"); in dumpTrace()
1254 if (gOptions.outputHtml) anchor_close = "</a>"; in printInclusiveMethod()
1266 if (gOptions.outputHtml) { in printInclusiveMethod()
1349 if (gOptions.outputHtml) { in printExclusiveProfile()
1369 if (gOptions.outputHtml) { in printExclusiveProfile()
1374 if (gOptions.outputHtml) { in printExclusiveProfile()
1392 if (gOptions.outputHtml) { in printExclusiveProfile()
1408 if (gOptions.outputHtml) { in printExclusiveProfile()
1418 return (percentage < gOptions.threshold) ? 0 : 1; in checkThreshold()
1458 if (gOptions.keepDotFile) { in createInclusiveProfileGraphNew()
1459 snprintf(path, FILENAME_MAX, "%s.dot", gOptions.graphFileName); in createInclusiveProfileGraphNew()
1476 snprintf(command, 1024, "dot -Tpng -o \"%s\" \"%s\"", gOptions.graphFileName, path); in createInclusiveProfileGraphNew()
1480 if (!gOptions.keepDotFile) { in createInclusiveProfileGraphNew()
1491 if (gOptions.outputHtml) { in printInclusiveProfile()
1506 if (gOptions.outputHtml) { in printInclusiveProfile()
1524 if (gOptions.outputHtml) { in printInclusiveProfile()
1562 if (gOptions.outputHtml) { in printInclusiveProfile()
1665 if (gOptions.outputHtml) { in printClassProfiles()
1675 if (gOptions.outputHtml) { in printClassProfiles()
1683 if (gOptions.outputHtml) { in printClassProfiles()
1714 if (gOptions.outputHtml) { in printClassProfiles()
1734 if (gOptions.outputHtml) { in printClassProfiles()
1778 if (gOptions.outputHtml) { in printClassProfiles()
1812 if (gOptions.outputHtml) { in printClassProfiles()
1883 if (gOptions.outputHtml) { in printMethodProfiles()
1893 if (gOptions.outputHtml) { in printMethodProfiles()
1924 if (gOptions.outputHtml) { in printMethodProfiles()
1944 if (gOptions.outputHtml) { in printMethodProfiles()
1988 if (gOptions.outputHtml) { in printMethodProfiles()
2022 if (gOptions.outputHtml) { in printMethodProfiles()
2228 if (gOptions.outputHtml) { in profileTrace()
2229 printf(htmlHeader, gOptions.sortableUrl); in profileTrace()
2242 if (gOptions.outputHtml) { in profileTrace()
2312 if (gOptions.outputHtml) printf("<tr><td>\n"); in printMissingMethod()
2315 if (gOptions.outputHtml) printf("</td><td>"); in printMissingMethod()
2318 if (gOptions.outputHtml) printf("</td><td>"); in printMissingMethod()
2321 if (gOptions.outputHtml) printf("</td><td>"); in printMissingMethod()
2324 if (gOptions.outputHtml) printf("</td><td>\n"); in printMissingMethod()
2390 if (gOptions.outputHtml) { in createDiff()
2391 printf(htmlHeader, gOptions.sortableUrl); in createDiff()
2397 printf("Run 1: %s<br>\n", gOptions.diffFileName); in createDiff()
2398 printf("Run 2: %s<br>\n", gOptions.traceFileName); in createDiff()
2406 if (gOptions.outputHtml) printf("<tr><td>\n"); in createDiff()
2412 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2415 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2418 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2421 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2424 if (gOptions.outputHtml) printf("</td><td>\n"); in createDiff()
2427 if (gOptions.outputHtml) printf("</td><td>\n"); in createDiff()
2430 if (gOptions.outputHtml) printf("</td></tr>\n"); in createDiff()
2435 if (gOptions.outputHtml) printf("</table>\n"); in createDiff()
2437 if (gOptions.outputHtml) { in createDiff()
2438 printf(htmlHeader, gOptions.sortableUrl); in createDiff()
2439 printf("Run 1: %s<br>\n", gOptions.diffFileName); in createDiff()
2440 printf("Run 2: %s<br>\n", gOptions.traceFileName); in createDiff()
2449 if (gOptions.outputHtml) printf("<tr><td>\n"); in createDiff()
2455 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2458 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2461 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2464 if (gOptions.outputHtml) printf("</td><td>"); in createDiff()
2467 if (gOptions.outputHtml) printf("</td><td>\n"); in createDiff()
2470 if (gOptions.outputHtml) printf("</td><td>\n"); in createDiff()
2473 if (gOptions.outputHtml) printf("</td></tr>\n"); in createDiff()
2478 if (gOptions.outputHtml) { in createDiff()
2490 if (gOptions.outputHtml) { in createDiff()
2502 if (gOptions.outputHtml) printf("</body></html\n"); in createDiff()
2536 gOptions.diffFileName = optarg; in parseOptions()
2539 gOptions.graphFileName = optarg; in parseOptions()
2542 gOptions.keepDotFile = 1; in parseOptions()
2545 gOptions.outputHtml = 1; in parseOptions()
2548 gOptions.dump = 1; in parseOptions()
2551 gOptions.sortableUrl = optarg; in parseOptions()
2554 gOptions.threshold = atoi(optarg); in parseOptions()
2567 gOptions.threshold = -1; in main()
2572 gOptions.traceFileName = argv[optind]; in main()
2574 if (gOptions.threshold < 0 || 100 <= gOptions.threshold) { in main()
2575 gOptions.threshold = 20; in main()
2578 if (gOptions.dump) { in main()
2586 DataKeys* dataKeys = parseDataKeys(&data1, gOptions.traceFileName, &sumThreadTime); in main()
2588 fprintf(stderr, "Cannot read \"%s\".\n", gOptions.traceFileName); in main()
2592 if (gOptions.diffFileName != nullptr) { in main()
2595 DataKeys* d2 = parseDataKeys(&data2, gOptions.diffFileName, &sum2); in main()
2597 fprintf(stderr, "Cannot read \"%s\".\n", gOptions.diffFileName); in main()
2607 if (gOptions.graphFileName != nullptr) { in main()