Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
imguiprofiler.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
9
//------------------------------------------------------------------------------
10
#include "
core/refcounted.h
"
11
#include "
core/singleton.h
"
12
#include "
profiling/profiling.h
"
13
#include "
coregraphics/commandbuffer.h
"
14
15
namespace
Dynui
16
{
17
18
class
ImguiProfiler
:
public
Core::RefCounted
19
{
20
__DeclareClass
(
ImguiProfiler
);
21
__DeclareInterfaceSingleton
(
ImguiProfiler
);
22
23
public
:
24
26
ImguiProfiler
();
28
~ImguiProfiler
();
29
31
void
Capture
();
32
34
void
Render
(
Timing::Time
frameTime,
IndexT
frameIndex);
35
37
void
TogglePause
();
38
39
private
:
40
bool
pauseProfiling
;
41
bool
showFrameProfiler
;
42
bool
profileFixedFps
;
43
float
averageFrameTime
;
44
float
prevAverageFrameTime
;
45
float
currentFrameTime
;
46
int
fixedFps
;
47
Util::Array<float>
frametimeHistory
;
48
Util::Array<Profiling::ProfilingContext>
profilingContexts
;
49
Util::Array<CoreGraphics::FrameProfilingMarker>
frameProfilingMarkers
;
50
51
};
52
53
}
// namespace Dynui
Core::RefCounted
The common base class of Nebula.
Definition
refcounted.h:38
Dynui::ImguiProfiler::profilingContexts
Util::Array< Profiling::ProfilingContext > profilingContexts
Definition
imguiprofiler.h:48
Dynui::ImguiProfiler::averageFrameTime
float averageFrameTime
Definition
imguiprofiler.h:43
Dynui::ImguiProfiler::~ImguiProfiler
~ImguiProfiler()
Destructor.
Definition
imguiprofiler.cc:31
Dynui::ImguiProfiler::profileFixedFps
bool profileFixedFps
Definition
imguiprofiler.h:42
Dynui::ImguiProfiler::__DeclareInterfaceSingleton
__DeclareInterfaceSingleton(ImguiProfiler)
Dynui::ImguiProfiler::currentFrameTime
float currentFrameTime
Definition
imguiprofiler.h:45
Dynui::ImguiProfiler::fixedFps
int fixedFps
Definition
imguiprofiler.h:46
Dynui::ImguiProfiler::frametimeHistory
Util::Array< float > frametimeHistory
Definition
imguiprofiler.h:47
Dynui::ImguiProfiler::frameProfilingMarkers
Util::Array< CoreGraphics::FrameProfilingMarker > frameProfilingMarkers
Definition
imguiprofiler.h:49
Dynui::ImguiProfiler::Render
void Render(Timing::Time frameTime, IndexT frameIndex)
Render, call this per-frame.
Definition
imguiprofiler.cc:168
Dynui::ImguiProfiler::showFrameProfiler
bool showFrameProfiler
Definition
imguiprofiler.h:41
Dynui::ImguiProfiler::pauseProfiling
bool pauseProfiling
Definition
imguiprofiler.h:40
Dynui::ImguiProfiler::TogglePause
void TogglePause()
Pause profiler.
Definition
imguiprofiler.cc:337
Dynui::ImguiProfiler::prevAverageFrameTime
float prevAverageFrameTime
Definition
imguiprofiler.h:44
Dynui::ImguiProfiler::ImguiProfiler
ImguiProfiler()
Constructor.
Definition
imguiprofiler.cc:17
Dynui::ImguiProfiler::__DeclareClass
__DeclareClass(ImguiProfiler)
Dynui::ImguiProfiler::Capture
void Capture()
Capture the frame.
Definition
imguiprofiler.cc:39
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
commandbuffer.h
Dynui
Imgui Profiler UI.
Definition
imguiconsole.cc:277
Timing::Time
double Time
the time datatype
Definition
time.h:18
profiling.h
refcounted.h
singleton.h
IndexT
int IndexT
Definition
types.h:41
code
addons
dynui
profiler
imguiprofiler.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.