Home | History | Annotate | Download | only in vm

Lines Matching refs:traceFile

390             state->traceFile = fopen(traceFileName, "w");
392 state->traceFile = fdopen(traceFd, "w");
394 if (state->traceFile == NULL) {
461 if (state->traceFile != NULL) {
462 fclose(state->traceFile);
463 state->traceFile = NULL;
650 assert(state->traceFile == NULL);
651 state->traceFile = open_memstream(&memStreamPtr, &memStreamSize);
652 if (state->traceFile == NULL) {
658 assert(state->traceFile != NULL);
660 fprintf(state->traceFile, "%cversion\n", TOKEN_CHAR);
661 fprintf(state->traceFile, "%d\n", state->traceVersion);
662 fprintf(state->traceFile, "data-file-overflow=%s\n",
666 fprintf(state->traceFile, "clock=dual\n");
668 fprintf(state->traceFile, "clock=thread-cpu\n");
671 fprintf(state->traceFile, "clock=wall\n");
673 fprintf(state->traceFile, "elapsed-time-usec=%llu\n", elapsed);
674 fprintf(state->traceFile, "num-method-calls=%d\n",
676 fprintf(state->traceFile, "clock-call-overhead-nsec=%d\n", clockNsec);
677 fprintf(state->traceFile, "vm=dalvik\n");
679 fprintf(state->traceFile, "alloc-count=%d\n",
681 fprintf(state->traceFile, "alloc-size=%d\n",
683 fprintf(state->traceFile, "gc-count=%d\n",
686 fprintf(state->traceFile, "%cthreads\n", TOKEN_CHAR);
687 dumpThreadList(state->traceFile);
688 fprintf(state->traceFile, "%cmethods\n", TOKEN_CHAR);
689 dumpMethodList(state->traceFile);
690 fprintf(state->traceFile, "%cend\n", TOKEN_CHAR);
697 fflush(state->traceFile);
707 if (fwrite(state->buf, finalCurOffset, 1, state->traceFile) != 1) {
719 fclose(state->traceFile);
720 state->traceFile = NULL;