The registry of startup profilers. More...
#include <kanzi/core/profiling/startup_profiler_registry.hpp>
Public Member Functions | |
StartupProfilerRegistry () | |
Constructor. | |
Public Member Functions inherited from kanzi::ProfilerRegistry< IntervalProfiler > | |
ProfilerContainer::const_iterator | beginProfilers () const |
Gets iterator to the begging of the profiler container. | |
ProfilerContainer::const_iterator | endProfilers () const |
Gets iterator to the end of the profiler container. | |
void | registerProfiler (ProfilerSharedPtr profiler) |
Adds a new profiler to the registry. | |
void | unregisterProfiler (ProfilerSharedPtr profiler) |
Removes a profiler from the registry. | |
Additional Inherited Members | |
Public Types inherited from kanzi::ProfilerRegistry< IntervalProfiler > | |
typedef unordered_set< ProfilerSharedPtr > | ProfilerContainer |
The profiler container type. | |
typedef shared_ptr< IntervalProfiler > | ProfilerSharedPtr |
The profiler shared point type. | |
Protected Attributes inherited from kanzi::ProfilerRegistry< IntervalProfiler > | |
ProfilerContainer | m_registeredProfilers |
The registered profilers. | |
The registry of startup profilers.
Profilers in this class are available only in the Kanzi profiling build.
|
explicit |
Constructor.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_loadPluginsProfiler |
Plugins loading profiler.
On startup, measures the time used to load Kanzi Engine plugins.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_registerMetadataProfiler |
Metadata registration profiler.
On startup, the profiler measures the time used to register metadata.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_initializationProfiler |
Application initialization profiler.
On startup, the profiler measures the time used to initialize an application.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_initializeGraphicsProfiler |
Graphics initialization profiler.
On startup, the profiler measures the time used to initialize the graphics stack.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_initializeGLProfiler |
Startup GL initialization profiler.
On startup, the profiler measures the time used to initialize the graphics library.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_registerDefaultResourcesProfiler |
Default resource registration profiler.
On startup, the profiler measures the time used to register the resource IDs for the Kanzi default resources, such as BackgroundBrush, NullBrush, WhiteBrush, BlackBrush, and so on. This profiler measures only the amount of time it takes to register these resources, not the amount of time it takes to load these resources.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_loadPrefabProfiler |
Prefabs loading profiler.
On startup, the profiler measures the time used to load prefabs.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_instantiatePrefabProfiler |
Prefabs instantiation profiler.
On startup, the profiler measures the time used to instantiate prefabs.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_attachPrefabProfiler |
Prefabs attachment profiler.
On startup, the profiler measures the time used to attach prefabs to nodes.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_resetRendererProfiler |
Renderer reset profiler.
On startup, the profiler measures the time used by the Renderer3D::reset() function, which invalidates all the internal caches of the renderer for the GPU state.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_initializeLoadingThreadsProfiler |
Loading threads initialization profiler.
On startup, the profiler measures the time used to initialize loading threads.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_registerRuntimeAssetsProfiler |
Runtime assets registration profiler.
On startup, the profiler measures the time used to open the kzb file with the Kanzi runtime assets, which contains assets, such as the default shaders and materials for the default shaders. Kanzi runtime assets are embedded in the application executable. This profiler does not include the amount of time it takes to load these resources. Kanzi loads resources only when your application needs them.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_openKzbProfiler |
Startup kzb file opening profiler.
On startup, the profiler measures the time used to open the startup kzb file.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_initializeDomainProfiler |
Domain initialization profiler.
On startup, the profiler measures the time used to initialize the Domain.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_onProjectLoadedProfiler |
OnProjectLoaded profiler.
On startup, the profiler measures the time used by the Application::onProjectLoaded function, which initializes an application after a project has been loaded.
IntervalProfilerSharedPtr kanzi::StartupProfilerRegistry::m_resumeGLProfiler |
ResumeGL profiler.
On startup, the profiler measures the time used by the Application::resumeGL function, which resumes the graphics language subsystem.