SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiDebugger.cpp
Go to the documentation of this file.
1/**
2* @file ImguiDebugger.cpp.
3* @brief The ImguiDebugger Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
9#include "Systems/SlateSystem.h"
10#include "Debugger/Perf/NsightPerfGPUProfilerReportGenerator.h"
11#include "Debugger/Perf/NsightPerfGPUProfilerOneshotCollection.h"
12#include "Debugger/Perf/NsightPerfGPUProfilerContinuous.h"
13#include "Core/Library/ProcessLibrary.h"
14
15namespace Spices {
16
18 const std::string& panelName ,
19 FrameInfo& frameInfo
20 )
21 : ImguiSlate(panelName, frameInfo)
22 {}
23
25 {
27
28 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.5f, 0.5f, 0.5f, 1.0f));
29 ImGui::SeparatorText("CPU Stage");
30 ImGui::PopStyleColor();
31 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, CPU Profiler), "F8")) { ProcessLibrary::OpenProcess(m_ProfileProcessName.c_str()); }
32 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.5f, 0.5f, 0.5f, 1.0f));
33 ImGui::SeparatorText("GPU Stage");
34 ImGui::PopStyleColor();
35 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, GPU Continuous), "F9")) { NSIGHTPERF_GPUPROFILERCONTINUOUS_CAPTUREFRAME }
36 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, GPU Report Generate), "F10")) { NSIGHTPERF_GPUPROFILERREPORT_CAPTUREFRAME }
37 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, GPU One-Shot Collection), "F10")) { NSIGHTPERF_GPUPROFILERONESHOT_CAPTUREFRAME }
38
39 /**
40 * @brief End render Utilities.
41 */
42 ImGui::EndMenu();
43 }
44}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
Definition FrameInfo.h:32
virtual void OnRender() override
This interface is called On SlateRenderer Render.
ImguiDebugger(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
Definition ImguiUtils.h:35
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
Definition ImguiUtils.h:27