:orphan: # PetscLogFlops Log how many flops are performed in a calculation ## Synopsis ``` static inline PetscErrorCode PetscLogFlops(PetscLogDouble n) ``` ## Input Parameter - ***flops -*** the number of flops ## Note To limit the chance of integer overflow when multiplying by a constant, represent the constant as a double, not an integer. Use `PetscLogFlops`(4.0*n) not `PetscLogFlops`(4*n) ## See Also [](ch_profiling), `PetscLogView()`, `PetscLogGpuFlops()` ## Level intermediate ## Location include/petsclog.h --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petsclog.h) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)