profiler_finalize Subroutine

public subroutine profiler_finalize()

Finalize the profiler and release resources

Should be called at the end of the program after profiler_report().

Arguments

None

Source Code

   subroutine profiler_finalize()
      !! Finalize the profiler and release resources
      !!
      !! Should be called at the end of the program after profiler_report().
#ifdef PIC_DISABLE_PROFILER
      return
#endif

      state%initialized = .false.
      state%num_regions = 0
      state%stack_depth = 0
   end subroutine profiler_finalize