RetrieveMemorySnapshots insight worker task

This commit is contained in:
Nav
2022-12-24 02:42:13 +00:00
parent be5127feda
commit 1091966f72
3 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include <vector>
#include "InsightWorkerTask.hpp"
#include "src/Targets/TargetMemory.hpp"
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemorySnapshot.hpp"
namespace Bloom
{
class RetrieveMemorySnapshots: public InsightWorkerTask
{
Q_OBJECT
public:
RetrieveMemorySnapshots(Targets::TargetMemoryType memoryType);
signals:
void memorySnapshotsRetrieved(std::vector<MemorySnapshot> snapshots);
protected:
void run(TargetController::TargetControllerConsole& targetControllerConsole) override;
private:
Targets::TargetMemoryType memoryType;
std::vector<MemorySnapshot> getSnapshots(Targets::TargetMemoryType memoryType);
};
}