Home | History | Annotate | Download | only in dmtracedump

Lines Matching refs:FILE

5  * you may not use this file except in compliance with the License.
35 /* Version number in the key file.
45 /* thread list in key file is not reliable, so just max out */
117 * Values from the header of the data file.
181 * The parsed contents of the key file.
184 char* fileData; /* contents of the entire file */
935 DataKeys* parseKeys(FILE *fp, int verbose)
946 * We load the entire file into memory. We do this, rather than memory-
955 fprintf(stderr, "Key file is empty.\n");
968 fprintf(stderr, "ERROR: unable to read %ld bytes from trace file\n",
1025 * Read values from the binary data file.
1031 unsigned int read2LE(FILE* fp)
1039 unsigned int read4LE(FILE* fp)
1049 unsigned long long read8LE(FILE* fp)
1067 * Returns with the file positioned at the start of the record data.
1069 int parseDataHeader(FILE *fp, DataHeader* pHeader)
1086 fprintf(stderr, "Unsupported trace file version: %d\n", pHeader->version);
1127 * methodVal and elapsedTime. On end-of-file, the threadId, methodVal,
1128 * and elapsedTime are unchanged. Returns 1 on end-of-file, otherwise
1131 int readDataRecord(FILE *dataFp, DataHeader* dataHeader,
1165 * Read the key file and use it to produce formatted output from the
1166 * data file.
1175 FILE* dataFp = NULL;
1212 * Extract values from file.
1623 void createLabels(FILE* file, MethodEntry* method)
1625 fprintf(file, "node%d[label = \"[%d] %s.%s (%llu, %llu, %d)\"]\n",
1638 createLabels(file, child->method);
1643 void createLinks(FILE* file, MethodEntry* method)
1651 fprintf(file, "node%d -> node%d\n", method->index, child->method->index);
1654 createLinks(file, child->method);
1662 // create a temporary file in /tmp
1670 FILE* file = fopen(path, "w+");
1672 fprintf(file, "digraph g {\nnode [shape = record,height=.1];\n");
1674 createLabels(file, dataKeys->methods);
1675 createLinks(file, dataKeys->methods);
1677 fprintf(file, "}");
1678 fclose(file);
1680 // now that we have the dot file generate the image
2298 FILE* dataFp = NULL;
2315 FILE *dumpStream = fopen("debug", "w");
2324 * Extract values from file.
2807 fprintf(stderr, "usage: %s [-ho] [-s sortable] [-d trace-file-name] [-g outfile] trace-file-name\n", program);
2808 fprintf(stderr, " -d trace-file-name - Diff with this trace\n");
2810 fprintf(stderr, " -k - When writing a graph, keep the intermediate DOT file\n");
2812 fprintf(stderr, " -o - Dump the dmtrace file instead of profiling\n");
2813 fprintf(stderr, " -s - URL base to where the sortable javascript file\n");