2
3
4
5
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"
18 const std::string& panelName ,
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 }
40
41
#define ICON_TEXT(icon, text)
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
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.
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...