Lines Matching refs:fd

452     FILE	*fd,  in prof_func_line()  argument
460 fprintf(fd, "%5d ", count); in prof_func_line()
462 fprintf(fd, " "); in prof_func_line()
464 fprintf(fd, "%s ", profile_msg(total)); in prof_func_line()
466 fprintf(fd, " "); in prof_func_line()
468 fprintf(fd, "%s ", profile_msg(self)); in prof_func_line()
471 fprintf(fd, " "); in prof_func_line()
476 FILE *fd, in prof_sort_list() argument
485 fprintf(fd, "FUNCTIONS SORTED ON %s TIME\n", title); in prof_sort_list()
486 fprintf(fd, "count total (s) self (s) function\n"); in prof_sort_list()
490 prof_func_line(fd, fp->uf_tm_count, &fp->uf_tm_total, &fp->uf_tm_self, in prof_sort_list()
493 fprintf(fd, " <SNR>%s()\n", fp->uf_name + 3); in prof_sort_list()
495 fprintf(fd, " %s()\n", fp->uf_name); in prof_sort_list()
497 fprintf(fd, "\n"); in prof_sort_list()
718 func_dump_profile(FILE *fd) in func_dump_profile() argument
748 fprintf(fd, "FUNCTION <SNR>%s()\n", fp->uf_name + 3); in func_dump_profile()
750 fprintf(fd, "FUNCTION %s()\n", fp->uf_name); in func_dump_profile()
757 fprintf(fd, " Defined: %s:%ld\n", in func_dump_profile()
763 fprintf(fd, "Called 1 time\n"); in func_dump_profile()
765 fprintf(fd, "Called %d times\n", fp->uf_tm_count); in func_dump_profile()
766 fprintf(fd, "Total time: %s\n", profile_msg(&fp->uf_tm_total)); in func_dump_profile()
767 fprintf(fd, " Self time: %s\n", profile_msg(&fp->uf_tm_self)); in func_dump_profile()
768 fprintf(fd, "\n"); in func_dump_profile()
769 fprintf(fd, "count total (s) self (s)\n"); in func_dump_profile()
775 prof_func_line(fd, fp->uf_tml_count[i], in func_dump_profile()
777 fprintf(fd, "%s\n", FUNCLINE(fp, i)); in func_dump_profile()
779 fprintf(fd, "\n"); in func_dump_profile()
788 prof_sort_list(fd, sorttab, st_len, "TOTAL", FALSE); in func_dump_profile()
791 prof_sort_list(fd, sorttab, st_len, "SELF", TRUE); in func_dump_profile()
838 script_dump_profile(FILE *fd) in script_dump_profile() argument
851 fprintf(fd, "SCRIPT %s\n", si->sn_name); in script_dump_profile()
853 fprintf(fd, "Sourced 1 time\n"); in script_dump_profile()
855 fprintf(fd, "Sourced %d times\n", si->sn_pr_count); in script_dump_profile()
856 fprintf(fd, "Total time: %s\n", profile_msg(&si->sn_pr_total)); in script_dump_profile()
857 fprintf(fd, " Self time: %s\n", profile_msg(&si->sn_pr_self)); in script_dump_profile()
858 fprintf(fd, "\n"); in script_dump_profile()
859 fprintf(fd, "count total (s) self (s)\n"); in script_dump_profile()
863 fprintf(fd, "Cannot open file!\n"); in script_dump_profile()
894 fprintf(fd, "%5d ", pp->snp_count); in script_dump_profile()
896 fprintf(fd, " "); in script_dump_profile()
898 fprintf(fd, "%s ", profile_msg(&pp->sn_prl_total)); in script_dump_profile()
899 fprintf(fd, "%s ", profile_msg(&pp->sn_prl_self)); in script_dump_profile()
902 fprintf(fd, " "); in script_dump_profile()
903 fprintf(fd, "%s", IObuff); in script_dump_profile()
907 fprintf(fd, "\n"); in script_dump_profile()
918 FILE *fd; in profile_dump() local
922 fd = mch_fopen((char *)profile_fname, "w"); in profile_dump()
923 if (fd == NULL) in profile_dump()
927 script_dump_profile(fd); in profile_dump()
928 func_dump_profile(fd); in profile_dump()
929 fclose(fd); in profile_dump()