Removes Driller from ScriptCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
#include <ScriptCanvas/Libraries/Core/SendScriptEvent.h>
|
||||
#include <ScriptCanvas/Libraries/Core/Start.h>
|
||||
#include <ScriptCanvas/Libraries/Core/UnaryOperator.h>
|
||||
#include <ScriptCanvas/Profiler/Driller.h>
|
||||
#include <ScriptCanvas/Translation/Translation.h>
|
||||
#include <ScriptCanvas/Variable/VariableBus.h>
|
||||
#include <ScriptCanvas/Variable/VariableData.h>
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Profiler
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Profiler
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <ScriptCanvas/Core/Graph.h>
|
||||
#include <ScriptCanvas/Core/Node.h>
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Profiler
|
||||
{
|
||||
void Driller::OnNodeExecute(Node* node)
|
||||
{
|
||||
m_output->BeginTag(AZ_CRC("ScriptCanvasGraphDriller", 0xb161ccb2));
|
||||
{
|
||||
m_output->BeginTag(AZ_CRC("OnNodeExecute", 0x3e51a5eb));
|
||||
{
|
||||
m_output->Write(AZ_CRC("NodeName", 0x606d4587), node->GetEntity()->GetName());
|
||||
m_output->Write(AZ_CRC("NodeType", 0xb2906ca8), node->RTTI_GetTypeName());
|
||||
}
|
||||
m_output->EndTag(AZ_CRC("StringEvent", 0xd1e005df));
|
||||
}
|
||||
m_output->EndTag(AZ_CRC("ScriptCanvasGraphDriller", 0xb161ccb2));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#include <AzCore/Driller/Driller.h>
|
||||
#include <AzCore/Driller/DrillerBus.h>
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
class Graph;
|
||||
class Node;
|
||||
|
||||
namespace Profiler
|
||||
{
|
||||
class DrillerInterface
|
||||
: public AZ::Debug::DrillerEBusTraits
|
||||
{
|
||||
public:
|
||||
|
||||
// On Entry
|
||||
// On Execute/Upate
|
||||
// On Exit
|
||||
virtual void OnNodeExecute(Node*) = 0;
|
||||
|
||||
};
|
||||
|
||||
using DrillerBus = AZ::EBus<DrillerInterface>;
|
||||
|
||||
class DrillerCommandInterface
|
||||
: public AZ::Debug::DrillerEBusTraits
|
||||
{
|
||||
public:
|
||||
|
||||
virtual Graph* RequestDrilledGraph() = 0;
|
||||
};
|
||||
|
||||
using DrillerCommandBus = AZ::EBus<DrillerCommandInterface>;
|
||||
|
||||
class Driller
|
||||
: public AZ::Debug::Driller
|
||||
, public DrillerBus::Handler
|
||||
{
|
||||
bool m_isDetailedCapture;
|
||||
|
||||
Graph* m_drilledGraph;
|
||||
|
||||
using ParamArrayType = AZStd::vector<Param>;
|
||||
ParamArrayType m_params;
|
||||
|
||||
public:
|
||||
|
||||
AZ_CLASS_ALLOCATOR(Driller, AZ::SystemAllocator, 0);
|
||||
|
||||
const char* GroupName() const override { return "ScriptCanvasDrillers"; }
|
||||
const char* GetName() const override { return "ScriptCanvasGraphDriller"; }
|
||||
const char* GetDescription() const override { return "Drilling the Script Canvas execution engine"; }
|
||||
int GetNumParams() const override { return static_cast<int>(m_params.size()); }
|
||||
const Param* GetParam(int index) const override { return &m_params[index]; }
|
||||
|
||||
Driller()
|
||||
: m_isDetailedCapture(false)
|
||||
, m_drilledGraph(nullptr)
|
||||
{
|
||||
Param isDetailed;
|
||||
isDetailed.desc = "IsDetailedDrill";
|
||||
isDetailed.name = AZ_CRC("IsDetailedDrill", 0x2155cef2);
|
||||
isDetailed.type = Param::PT_BOOL;
|
||||
isDetailed.value = 0;
|
||||
m_params.push_back(isDetailed);
|
||||
}
|
||||
|
||||
void Start(const Param* params = nullptr, int numParams = 0) override
|
||||
{
|
||||
m_isDetailedCapture = m_params[0].value != 0;
|
||||
if (params)
|
||||
{
|
||||
for (int i = 0; i < numParams; i++)
|
||||
{
|
||||
if (params[i].name == m_params[0].name)
|
||||
{
|
||||
m_isDetailedCapture = params[i].value != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DrillerCommandBus::BroadcastResult(m_drilledGraph, &DrillerCommandInterface::RequestDrilledGraph);
|
||||
// AZ_TEST_ASSERT(m_drilledGraph != nullptr); /// Make sure we have our object by the time we started the driller
|
||||
|
||||
m_output->BeginTag(AZ_CRC("ScriptCanvasGraphDriller", 0xb161ccb2));
|
||||
m_output->Write(AZ_CRC("OnStart", 0x8b372fca), m_isDetailedCapture);
|
||||
// write drilled object initial state
|
||||
m_output->EndTag(AZ_CRC("ScriptCanvasGraphDriller", 0xb161ccb2));
|
||||
|
||||
BusConnect();
|
||||
}
|
||||
|
||||
void Stop() override
|
||||
{
|
||||
//m_drilledGraph = nullptr;
|
||||
//m_output->BeginTag(AZ_CRC("ScriptCanvasGraphDriller"));
|
||||
//m_output->Write(AZ_CRC("OnStop"), m_isDetailedCapture);
|
||||
//m_output->EndTag(AZ_CRC("ScriptCanvasGraphDriller"));
|
||||
//BusDisconnect();
|
||||
}
|
||||
|
||||
void OnNodeExecute(Node* node) override;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Profiler
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#include <AzCore/Memory/SystemAllocator.h>
|
||||
#include <AzCore/RTTI/RTTI.h>
|
||||
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
namespace Profiler
|
||||
{
|
||||
namespace Event
|
||||
{
|
||||
class GraphExecutionStart
|
||||
{
|
||||
public:
|
||||
AZ_CLASS_ALLOCATOR(GraphExecutionStart, AZ::SystemAllocator, 0)
|
||||
AZ_RTTI(GraphExecutionStart, "{AAB7E2E1-9096-4F51-90CA-259A057F2D88}");
|
||||
|
||||
GraphExecutionStart()
|
||||
{}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user