Lines Matching refs:fp
690 PetscErrorCode PetscMallocDump(FILE *fp) in PetscMallocDump() argument
698 if (!fp) fp = PETSC_STDOUT; in PetscMallocDump()
704 …if (TRallocated - libAlloc > 0) fprintf(fp, "[%d]Total space allocated %.0f bytes\n", rank, (Petsc… in PetscMallocDump()
712 …fprintf(fp, "[%2d] %.0f bytes\n", rank, (PetscLogDouble)(TRrequestedSize ? head->rsize : head->siz… in PetscMallocDump()
713 PetscCall(PetscStackPrint(&head->stack, fp)); in PetscMallocDump()
715 …fprintf(fp, "[%2d] %.0f bytes %s() at %s:%d\n", rank, (PetscLogDouble)(TRrequestedSize ? head->rsi… in PetscMallocDump()
861 PetscErrorCode PetscMallocView(FILE *fp) in PetscMallocView() argument
873 PetscCall(PetscFFlush(fp)); in PetscMallocView()
877 if (!fp) fp = PETSC_STDOUT; in PetscMallocView()
880 …(void)fprintf(fp, "[%d] Maximum memory PetscMalloc()ed %.0f maximum size of entire process %.0f\n"… in PetscMallocView()
882 …(void)fprintf(fp, "[%d] Maximum memory PetscMalloc()ed %.0f OS cannot compute size of entire proce… in PetscMallocView()
913 (void)fprintf(fp, "[%d] Memory usage sorted by function\n", rank); in PetscMallocView()
914 …for (PetscInt i = 0; i < n; i++) (void)fprintf(fp, "[%d] %d %.0f %s()\n", rank, shortcount[perm[i]… in PetscMallocView()
920 PetscCall(PetscFFlush(fp)); in PetscMallocView()