2022-12-24 02:42:13 +00:00
|
|
|
#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:
|
2022-12-26 21:27:19 +00:00
|
|
|
void run(Services::TargetControllerService& targetControllerService) override;
|
2022-12-24 02:42:13 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Targets::TargetMemoryType memoryType;
|
|
|
|
|
|
|
|
|
|
std::vector<MemorySnapshot> getSnapshots(Targets::TargetMemoryType memoryType);
|
|
|
|
|
};
|
|
|
|
|
}
|