39 const std::string MemoryGrapher::defaultName =
"MemoryGrapher";
42 MemoryGrapher::createPropertyDefinitions()
48 def->topic(graphTopic,
"MemoryGraphTopic");
66 MemoryGrapher::onInitComponent()
76 MemoryGrapher::onConnectComponent()
105 MemoryGrapher::run(
const std::string&
memoryID)
112 finished.store(
true, std::memory_order_release);
116 MemoryGrapher::onDisconnectComponent()
118 if (worker.joinable())
125 MemoryGrapher::onExitComponent()
127 if (worker.joinable())
134 MemoryGrapher::getDefaultName()
const
136 return MemoryGrapher::defaultName;
140 MemoryGrapher::createRemoteGuiTab()
146 tab.memoryID.setValue(
"");
147 tab.memoryID.setName(
"Memory ID");
149 tab.createGraph.setLabel(
"Create Graph");
153 HBoxLayout root = {tab.memoryID, tab.createGraph};
160 if (tab.createGraph.wasClicked())
162 std::string
memoryID = tab.memoryID.getValue();
164 if (worker.joinable())
166 if (finished.load(std::memory_order_acquire))
175 finished.store(
false, std::memory_order_release);