Removes leftover from profiler tool

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-12-02 14:39:38 -08:00
parent bda818dec0
commit 5dfd40d056
11 changed files with 1 additions and 184 deletions
@@ -9,10 +9,10 @@
#include <AzCore/PlatformIncl.h>
#include <AzCore/Memory/AllocationRecords.h>
#include <AzCore/Memory/AllocatorManager.h>
#include <AzCore/Driller/DrillerBus.h>
#include <AzCore/std/time.h>
#include <AzCore/std/parallel/mutex.h>
#include <AzCore/std/parallel/scoped_lock.h>
#include <AzCore/Debug/StackTracer.h>
@@ -1,19 +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
*
*/
class QString;
namespace Driller
{
namespace Platform
{
void LaunchExplorerSelect(const QString& filePath)
{
}
}
}
@@ -1,12 +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
#
#
set(FILES
../Common/Unimplemented/Source/StandaloneApplication_Unimplemented.cpp
../Common/Unimplemented/Source/Driller/EvenTrace/EventTraceDataAggregator_Unimplemented.cpp
)
@@ -1,25 +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 <QtCore/QString>
#include <QtCore/QProcess>
#include <QtCore/QDir>
namespace Driller
{
namespace Platform
{
void LaunchExplorerSelect(const QString& filePath)
{
QProcess::startDetached("/usr/bin/osascript", {"-e",
QStringLiteral("tell application \"Finder\" to reveal POSIX file \"%1\"").arg(QDir::toNativeSeparators(filePath))});
QProcess::startDetached("/usr/bin/osascript", {"-e",
QStringLiteral("tell application \"Finder\" to activate")});
}
}
}
@@ -1,12 +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
#
#
set(FILES
Source/StandaloneApplication_Mac.cpp
Source/Driller/EvenTrace/EventTraceDataAggregator_Mac.cpp
)
@@ -1,25 +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 <QtCore/QString>
#include <QtCore/QProcess>
namespace Driller
{
namespace Platform
{
void LaunchExplorerSelect(const QString& filePath)
{
QString windowsPath = filePath;
windowsPath.replace('/', "\\");
QProcess process;
process.start("explorer", { " /select," + windowsPath });
process.waitForFinished();
}
}
}
@@ -1,13 +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
#
#
set(FILES
../../Source/Editor/ProfilerEditor.rc
Source/StandaloneApplication_Windows.cpp
Source/Driller/EvenTrace/EventTraceDataAggregator_Windows.cpp
)
@@ -1,65 +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 "ProfilerEditor.h"
#include <Source/ProfilerApplication.h>
#if defined(AZ_COMPILER_MSVC)
#include "resource.h"
#endif
#include <QString>
#include <QCoreApplication>
#include <QFileInfo>
// Editor.cpp : Defines the entry point for the application.
int main(int argc, char* argv[])
{
// here we free the console (and close the console window) in release.
int exitCode = 0;
{
if (!AZ::AllocatorInstance<AZ::OSAllocator>::IsReady())
{
AZ::AllocatorInstance<AZ::OSAllocator>::Create();
}
AZStd::unique_ptr<AZ::IO::LocalFileIO> fileIO = AZStd::unique_ptr<AZ::IO::LocalFileIO>(aznew AZ::IO::LocalFileIO());
AZ::IO::FileIOBase::SetInstance(fileIO.get());
Driller::Application app(argc, argv);
QString procName;
{
QCoreApplication qca(argc, argv);
procName = QFileInfo(qca.applicationFilePath()).fileName();
}
LegacyFramework::ApplicationDesc desc(procName.toUtf8().data(), argc, argv);
desc.m_applicationModule = NULL;
desc.m_enableProjectManager = false;
exitCode = app.Run(desc);
// this call will block until someone tells the core app to shut down via a bus message.
// the bus message is usually sent (in gui mode) in response to pressing the quit button or something.
// in an app that does not require GUI to be manufactured or use GUI windows, you should still call RUN
// but make a component which does your processing, in response to RestoreState(). in the CoreMessages bus.
// RestoreState will always be called right before the main message pump activates.
// and will then block until someone calls:
/*EBUS_EVENT(UIFramework::FrameworkMessages::Bus, UserWantsToQuit); */
// so ideally to make a file processor or something, simply call app.Initialize(.... but with false as the gui mode ... )
// and make at least one component which starts processing in response to CoreMessages::RestoreState(), and then sends UserWantsToQuit() once it has done its processing.
// calling UserWantsToQuit will simply queue the quit, so its safe to call from any thread.
// your components can query EBUS_EVENT_RESULT(res, LegacyFramework::FrameworkApplicationMessages::IsRunningInGUIMode) to determine
// if its in GUI mode or not.
}
return exitCode;
}
@@ -1,9 +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
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b4863291cd214b33baf55b42e4184e6e2d6de02bcc621d6b037f5d1aab7b978a
size 2238