Implement a simple event profiler view.

This commit is contained in:
Henrik Rydgård committed 2022-09-24 00:06:22 +02:00
1 parent 1259283c2e
commit 7e961817b2
26 files changed
+637 -22

No files matched your search

+4
View File
@@ -6,6 +6,8 @@
#include "Common/Log.h"
#include "Common/TimeUtil.h"
#include "Common/Profiler/EventStream.h"
using namespace PPSSPP_VK;
// Debug help: adb logcat -s DEBUG PPSSPPNativeActivity PPSSPP NativeGLView NativeRenderer NativeSurfaceView PowerSaveModeReceiver InputDeviceState
@@ -555,6 +557,8 @@ void VulkanQueueRunner::PreprocessSteps(std::vector<VKRStep *> &steps) {
}
void VulkanQueueRunner::RunSteps(std::vector<VKRStep *> &steps, FrameData &frameData, FrameDataShared &frameDataShared) {
EventScope scope(frameData.renderThreadEvents, "run_steps", EventStream::EventType::COMPUTE);
QueueProfileContext *profile = frameData.profilingEnabled_ ? &frameData.profile : nullptr;
if (profile)