:orphan: # PetscGetFlops Returns the number of flops used on this processor since the program began. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscGetFlops(PetscLogDouble *flops) ``` Not Collective ## Output Parameter flops - number of floating point operations ## Notes A global counter logs all PETSc flop counts. The user can use `PetscLogFlops()` to increment this counter to include flops for the application code. A separate counter `PetscLogGPUFlops()` logs the flops that occur on any GPU associated with this MPI rank ## See Also [](ch_profiling), `PetscLogGPUFlops()`, `PetscTime()`, `PetscLogFlops()` ## Level intermediate ## Location src/sys/logging/plog.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/logging/plog.c) [Index of all Profiling routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)