Files
UnrealEngineUWP/Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/Debugger/StateTreeTraceAnalyzer.h
yoan stamant c478e602b3 [StateTree] debugger updates:
- replaced log listing by treeview (as a prototype but will be replaced by a timeline)
- added event for conditions
- added details view for Condition and Tasks instance data
#rb mikko.mononen
#preflight 644002eea35280ed4f7a6afe

[CL 25110578 by yoan stamant in ue5-main branch]
2023-04-19 13:26:23 -04:00

35 lines
864 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#if WITH_STATETREE_DEBUGGER
#include "Trace/Analyzer.h"
class FStateTreeTraceProvider;
namespace TraceServices { class IAnalysisSession; }
class FStateTreeTraceAnalyzer : public UE::Trace::IAnalyzer
{
public:
FStateTreeTraceAnalyzer(TraceServices::IAnalysisSession& InSession, FStateTreeTraceProvider& InProvider);
virtual void OnAnalysisBegin(const FOnAnalysisContext& Context) override;
virtual void OnAnalysisEnd() override {}
virtual bool OnEvent(uint16 RouteId, EStyle Style, const FOnEventContext& Context) override;
private:
enum : uint16
{
RouteId_Instance,
RouteId_LogMessage,
RouteId_State,
RouteId_Task,
RouteId_Condition,
RouteId_ActiveStates
};
TraceServices::IAnalysisSession& Session;
FStateTreeTraceProvider& Provider;
};
#endif // WITH_STATETREE_DEBUGGER