Home | History | Annotate | Download | only in dmtracedump

Lines Matching refs:gOptions

237 static Options gOptions;
1189 dataFp = fopen(gOptions.traceFileName, "rb");
1417 if (gOptions.outputHtml)
1429 if (gOptions.outputHtml) {
1543 if (gOptions.outputHtml) {
1566 if (gOptions.outputHtml) {
1571 if (gOptions.outputHtml) {
1591 if (gOptions.outputHtml) {
1609 if (gOptions.outputHtml) {
1620 return (percentage < gOptions.threshold) ? 0 : 1;
1664 if (gOptions.keepDotFile) {
1665 snprintf(path, FILENAME_MAX, "%s.dot", gOptions.graphFileName);
1682 snprintf(command, 1024, "dot -Tpng -o \"%s\" \"%s\"", gOptions.graphFileName, path);
1686 if (! gOptions.keepDotFile) {
1704 if (gOptions.outputHtml) {
1720 if (gOptions.outputHtml) {
1741 if (gOptions.outputHtml) {
1785 if (gOptions.outputHtml) {
1902 if (gOptions.outputHtml) {
1912 if (gOptions.outputHtml) {
1920 if (gOptions.outputHtml) {
1955 if (gOptions.outputHtml) {
1975 if (gOptions.outputHtml) {
2016 if (gOptions.outputHtml) {
2052 if (gOptions.outputHtml) {
2141 if (gOptions.outputHtml) {
2151 if (gOptions
2187 if (gOptions.outputHtml) {
2207 if (gOptions.outputHtml) {
2247 if (gOptions.outputHtml) {
2284 if (gOptions.outputHtml) {
2507 if (gOptions.outputHtml) {
2508 printf(htmlHeader, gOptions.sortableUrl);
2521 if (gOptions.outputHtml) {
2608 if (gOptions.outputHtml) printf("<tr><td>\n");
2611 if (gOptions.outputHtml) printf("</td><td>");
2614 if (gOptions.outputHtml) printf("</td><td>");
2617 if (gOptions.outputHtml) printf("</td><td>");
2620 if (gOptions.outputHtml) printf("</td><td>\n");
2686 if (gOptions.outputHtml) {
2687 printf(htmlHeader, gOptions.sortableUrl);
2693 printf("Run 1: %s<br>\n", gOptions.diffFileName);
2694 printf("Run 2: %s<br>\n", gOptions.traceFileName);
2705 if (gOptions.outputHtml) printf("<tr><td>\n");
2711 if (gOptions.outputHtml) printf("</td><td>");
2714 if (gOptions.outputHtml) printf("</td><td>");
2717 if (gOptions.outputHtml) printf("</td><td>");
2720 if (gOptions.outputHtml) printf("</td><td>");
2723 if (gOptions.outputHtml) printf("</td><td>\n");
2726 if (gOptions.outputHtml) printf("</td><td>\n");
2729 if (gOptions.outputHtml) printf("</td></tr>\n");
2734 if (gOptions.outputHtml) printf("</table>\n");
2736 if (gOptions.outputHtml) {
2737 printf(htmlHeader, gOptions.sortableUrl);
2738 printf("Run 1: %s<br>\n", gOptions.diffFileName);
2739 printf("Run 2: %s<br>\n", gOptions.traceFileName);
2748 if (gOptions.outputHtml) printf("<tr><td>\n");
2754 if (gOptions.outputHtml) printf("</td><td>");
2757 if (gOptions.outputHtml) printf("</td><td>");
2760 if (gOptions.outputHtml) printf("</td><td>");
2763 if (gOptions.outputHtml) printf("</td><td>");
2766 if (gOptions.outputHtml) printf("</td><td>\n");
2769 if (gOptions.outputHtml) printf("</td><td>\n");
2772 if (gOptions.outputHtml) printf("</td></tr>\n");
2777 if (gOptions.outputHtml) {
2789 if (gOptions.outputHtml) {
2801 if (gOptions.outputHtml) printf("</body></html\n");
2827 gOptions.diffFileName = optarg;
2830 gOptions.graphFileName = optarg;
2833 gOptions.keepDotFile = 1;
2836 gOptions.outputHtml = 1;
2839 gOptions.dump = 1;
2842 gOptions.sortableUrl = optarg;
2845 gOptions.threshold = atoi(optarg);
2859 gOptions.threshold = -1;
2865 gOptions.traceFileName = argv[optind];
2867 if (gOptions.threshold < 0 || 100 <= gOptions.threshold) {
2868 gOptions.threshold = 20;
2871 if (gOptions.dump) {
2879 DataKeys* dataKeys = parseDataKeys(&data1, gOptions.traceFileName,
2882 fprintf(stderr, "Cannot read \"%s\".\n", gOptions.traceFileName);
2886 if (gOptions.diffFileName != NULL) {
2889 DataKeys* d2 = parseDataKeys(&data2, gOptions.diffFileName, &sum2);
2891 fprintf(stderr, "Cannot read \"%s\".\n", gOptions.diffFileName);
2901 if (gOptions.graphFileName != NULL) {