Blender Git Loki

Git Commits -> Revision 7fa6f72

Revision 7fa6f72 by Lukas Stockner (master)
November 29, 2018, 01:45 (GMT)
Cycles: Add sample-based runtime profiler that measures time spent in various parts of the CPU kernel

This commit adds a sample-based profiler that runs during CPU rendering and collects statistics on time spent in different parts of the kernel (ray intersection, shader evaluation etc.) as well as time spent per material and object.

The results are currently not exposed in the user interface or per Python yet, to see the stats on the console pass the "--cycles-print-stats" argument to Cycles (e.g. "./blender -- --cycles-print-stats").

Unfortunately, there is no clear way to extend this functionality to CUDA or OpenCL, so it is CPU-only for now.

Reviewers: brecht, sergey, swerner

Reviewed By: brecht, swerner

Differential Revision: https://developer.blender.org/D3892

Commit Details:

Full Hash: 7fa6f72084b1364cddfbef4f06bbb244210d6967
Parent Commit: fb05715
Lines Changed: +837, -36

3 Added Paths:

/intern/cycles/kernel/kernel_profiling.h (+40, -0) (View)
/intern/cycles/util/util_profiling.cpp (+178, -0) (View)
/intern/cycles/util/util_profiling.h (+175, -0) (View)

23 Modified Paths:

/intern/cycles/blender/blender_session.cpp (+1, -1) (Diff)
/intern/cycles/blender/blender_sync.cpp (+5, -1) (Diff)
/intern/cycles/device/device.cpp (+2, -0) (Diff)
/intern/cycles/device/device.h (+2, -0) (Diff)
/intern/cycles/device/device_cpu.cpp (+23, -1) (Diff)
/intern/cycles/device/device_denoising.cpp (+1, -0) (Diff)
/intern/cycles/device/device_denoising.h (+4, -0) (Diff)
/intern/cycles/kernel/bvh/bvh.h (+10, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/kernel_globals.h (+4, -0) (Diff)
/intern/cycles/kernel/kernel_passes.h (+3, -0) (Diff)
/intern/cycles/kernel/kernel_path.h (+14, -0) (Diff)
/intern/cycles/kernel/kernel_path_subsurface.h (+2, -0) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+4, -0) (Diff)
/intern/cycles/kernel/kernel_shader.h (+38, -0) (Diff)
/intern/cycles/render/object.cpp (+30, -27) (Diff)
/intern/cycles/render/object.h (+12, -2) (Diff)
/intern/cycles/render/session.cpp (+24, -3) (Diff)
/intern/cycles/render/session.h (+9, -1) (Diff)
/intern/cycles/render/stats.cpp (+194, -0) (Diff)
/intern/cycles/render/stats.h (+56, -0) (Diff)
/intern/cycles/util/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/util/util_stats.h (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021