|
Blender
V2.93
|
#include <util_profiling.h>
Public Member Functions | |
| Profiler () | |
| ~Profiler () | |
| void | reset (int num_shaders, int num_objects) |
| void | start () |
| void | stop () |
| void | add_state (ProfilingState *state) |
| void | remove_state (ProfilingState *state) |
| uint64_t | get_event (ProfilingEvent event) |
| bool | get_shader (int shader, uint64_t &samples, uint64_t &hits) |
| bool | get_object (int object, uint64_t &samples, uint64_t &hits) |
Protected Member Functions | |
| void | run () |
Protected Attributes | |
| vector< uint64_t > | event_samples |
| vector< uint64_t > | shader_samples |
| vector< uint64_t > | object_samples |
| vector< uint64_t > | shader_hits |
| vector< uint64_t > | object_hits |
| volatile bool | do_stop_worker |
| thread * | worker |
| thread_mutex | mutex |
| vector< ProfilingState * > | states |
Definition at line 90 of file util_profiling.h.
| CCL_NAMESPACE_BEGIN Profiler::Profiler | ( | ) |
Definition at line 24 of file util_profiling.cpp.
| Profiler::~Profiler | ( | ) |
Definition at line 28 of file util_profiling.cpp.
| void Profiler::add_state | ( | ProfilingState * | state | ) |
Definition at line 113 of file util_profiling.cpp.
References mutex, object_hits, PROFILING_UNKNOWN, shader_hits, state, and states.
Referenced by CPUDevice::thread_denoise(), and CPUDevice::thread_render().
| uint64_t Profiler::get_event | ( | ProfilingEvent | event | ) |
Definition at line 152 of file util_profiling.cpp.
References event_samples, NULL, and worker.
Referenced by RenderStats::collect_profiling().
Definition at line 169 of file util_profiling.cpp.
References NULL, object_hits, object_samples, and worker.
Referenced by RenderStats::collect_profiling().
Definition at line 158 of file util_profiling.cpp.
References NULL, shader(), shader_hits, shader_samples, and worker.
Referenced by RenderStats::collect_profiling().
| void Profiler::remove_state | ( | ProfilingState * | state | ) |
Definition at line 132 of file util_profiling.cpp.
References mutex, object_hits, shader_hits, state, and states.
Referenced by CPUDevice::thread_denoise(), and CPUDevice::thread_render().
| void Profiler::reset | ( | int | num_shaders, |
| int | num_objects | ||
| ) |
Definition at line 75 of file util_profiling.cpp.
References event_samples, NULL, object_hits, object_samples, PROFILING_NUM_EVENTS, shader_hits, shader_samples, start(), stop(), and worker.
Referenced by Session::run_cpu(), and Session::run_gpu().
|
protected |
Definition at line 33 of file util_profiling.cpp.
References do_stop_worker, event_samples, mutex, object_samples, PROFILING_CLOSURE_EVAL, PROFILING_CLOSURE_VOLUME_SAMPLE, PROFILING_NUM_EVENTS, PROFILING_SHADER_EVAL, PROFILING_SUBSURFACE, shader_samples, state, and states.
Referenced by start().
| void Profiler::start | ( | ) |
Definition at line 95 of file util_profiling.cpp.
References do_stop_worker, function_bind, NULL, run(), and worker.
Referenced by reset(), and Session::run().
| void Profiler::stop | ( | ) |
Definition at line 102 of file util_profiling.cpp.
References do_stop_worker, thread::join(), NULL, and worker.
Referenced by reset(), and Session::run().
|
protected |
Definition at line 124 of file util_profiling.h.
Definition at line 113 of file util_profiling.h.
Referenced by get_event(), reset(), and run().
|
protected |
Definition at line 127 of file util_profiling.h.
Referenced by add_state(), remove_state(), and run().
Definition at line 122 of file util_profiling.h.
Referenced by add_state(), get_object(), remove_state(), and reset().
Definition at line 115 of file util_profiling.h.
Referenced by get_object(), reset(), and run().
Definition at line 121 of file util_profiling.h.
Referenced by add_state(), get_shader(), remove_state(), and reset().
Definition at line 114 of file util_profiling.h.
Referenced by get_shader(), reset(), and run().
|
protected |
Definition at line 128 of file util_profiling.h.
Referenced by add_state(), remove_state(), and run().
|
protected |
Definition at line 125 of file util_profiling.h.
Referenced by get_event(), get_object(), get_shader(), reset(), start(), stop(), and ~Profiler().