|
Blender V4.3
|
Utility defines for timing/benchmarks. More...
Go to the source code of this file.
Macros | |
| #define | TIMEIT_START(var) |
| #define | TIMEIT_VALUE(var) (float)(BLI_time_now_seconds() - _timeit_##var) |
| #define | TIMEIT_VALUE_PRINT(var) |
| #define | TIMEIT_END(var) |
| #define | TIMEIT_START_AVERAGED(var) |
| #define | TIMEIT_AVERAGED_VALUE(var) (_num##var ? (_sum_##var / _num_##var) : 0.0f) |
| #define | TIMEIT_END_AVERAGED(var) |
| #define | TIMEIT_BENCH(expr, id) |
| #define | TIMEIT_BLOCK_INIT(id) double _timeit_var_##id = 0 |
| #define | TIMEIT_BLOCK_START(id) |
| #define | TIMEIT_BLOCK_END(id) |
| #define | TIMEIT_BLOCK_VALUE(id) (float)(_timeit_var_##id) |
| #define | TIMEIT_BLOCK_STATS(id) |
Utility defines for timing/benchmarks.
Definition in file BLI_time_utildefines.h.
| #define TIMEIT_AVERAGED_VALUE | ( | var | ) | (_num##var ? (_sum_##var / _num_##var) : 0.0f) |
Definition at line 63 of file BLI_time_utildefines.h.
| #define TIMEIT_BENCH | ( | expr, | |
| id ) |
Given some function/expression: TIMEIT_BENCH(some_function(), some_unique_description);
Definition at line 86 of file BLI_time_utildefines.h.
| #define TIMEIT_BLOCK_END | ( | id | ) |
Definition at line 102 of file BLI_time_utildefines.h.
Definition at line 94 of file BLI_time_utildefines.h.
| #define TIMEIT_BLOCK_START | ( | id | ) |
Definition at line 96 of file BLI_time_utildefines.h.
| #define TIMEIT_BLOCK_STATS | ( | id | ) |
Definition at line 110 of file BLI_time_utildefines.h.
Definition at line 108 of file BLI_time_utildefines.h.
| #define TIMEIT_END | ( | var | ) |
Definition at line 38 of file BLI_time_utildefines.h.
Referenced by BKE_library_make_local(), BLI_polyfill_calc(), BLI_polyfill_calc_arena(), BM_mesh_beautify_fill(), BM_mesh_region_match(), correctivesmooth_modifier_do(), ED_pose_recalculate_paths(), modify_mesh(), modify_mesh(), pose_calculate_paths_exec(), um_arraystore_compact_with_info(), and undomesh_to_editmesh().
| #define TIMEIT_END_AVERAGED | ( | var | ) |
Definition at line 65 of file BLI_time_utildefines.h.
Referenced by BKE_lib_override_library_main_operations_create(), BKE_lib_override_library_operations_store_start(), blender::ed::sculpt_paint::paint_stroke_curve_end(), RNA_struct_override_apply(), and RNA_struct_override_store().
| #define TIMEIT_START | ( | var | ) |
Definition at line 15 of file BLI_time_utildefines.h.
Referenced by BKE_library_make_local(), BLI_polyfill_calc(), BLI_polyfill_calc_arena(), BM_mesh_beautify_fill(), BM_mesh_region_match(), correctivesmooth_modifier_do(), ED_pose_recalculate_paths(), modify_mesh(), modify_mesh(), pose_calculate_paths_exec(), um_arraystore_compact_with_info(), and undomesh_to_editmesh().
| #define TIMEIT_START_AVERAGED | ( | var | ) |
_AVERAGED variants do same thing as their basic counterpart, but additionally add elapsed time to an averaged static value, useful to get sensible timing of code running fast and often.
Definition at line 53 of file BLI_time_utildefines.h.
Referenced by BKE_lib_override_library_main_operations_create(), BKE_lib_override_library_operations_store_start(), blender::ed::sculpt_paint::paint_stroke_curve_end(), RNA_struct_override_apply(), and RNA_struct_override_store().
| #define TIMEIT_VALUE | ( | var | ) | (float)(BLI_time_now_seconds() - _timeit_##var) |
Definition at line 26 of file BLI_time_utildefines.h.
| #define TIMEIT_VALUE_PRINT | ( | var | ) |
Definition at line 28 of file BLI_time_utildefines.h.
Referenced by BKE_library_make_local().