41 const std::string MemoryGrapher::defaultName =
"MemoryGrapher";
45 MemoryGrapher::createPropertyDefinitions()
51 def->topic(graphTopic,
"MemoryGraphTopic");
70 MemoryGrapher::onInitComponent()
81 MemoryGrapher::onConnectComponent()
110 MemoryGrapher::run(
const std::string&
memoryID)
117 finished.store(
true, std::memory_order_release);
122 MemoryGrapher::onDisconnectComponent()
124 if (worker.joinable())
132 MemoryGrapher::onExitComponent()
134 if (worker.joinable())
142 MemoryGrapher::getDefaultName()
const
144 return MemoryGrapher::defaultName;
149 MemoryGrapher::createRemoteGuiTab()
155 tab.memoryID.setValue(
"");
156 tab.memoryID.setName(
"Memory ID");
158 tab.createGraph.setLabel(
"Create Graph");
162 HBoxLayout root = {tab.memoryID, tab.createGraph};
170 if (tab.createGraph.wasClicked())
172 std::string
memoryID = tab.memoryID.getValue();
174 if (worker.joinable())
176 if (finished.load(std::memory_order_acquire))
185 finished.store(
false, std::memory_order_release);