Skip to content

Commit 8b3c1db

Browse files
committed
Send variable list with restart
1 parent 1f9902c commit 8b3c1db

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

connector.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ namespace Profiling {
140140
sendOverSocket(node.get_node());
141141
}
142142

143-
void Connector::restart(const std::string& file_path, int restart_id) {
143+
void Connector::restart(const std::string& file_path, int restart_id, const std::string& variableList) {
144144
// std::cerr << "restarting gist, restart_id: " << restart_id << "\n";
145145

146146
message::Node dummy_node;
@@ -157,6 +157,8 @@ namespace Profiling {
157157
}
158158

159159
dummy_node.set_label(name);
160+
if (variableList.size() > 0)
161+
dummy_node.set_info(variableList);
160162

161163
sendOverSocket(dummy_node);
162164
}

connector.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace Profiling {
5959
void connect();
6060

6161
// sends START_SENDING message to the Profiler with a model name
62-
void restart(const std::string& file_path = "", int restart_id = -1);
62+
void restart(const std::string& file_path = "", int restart_id = -1, const std::string& variableList = "");
6363

6464
void done();
6565

0 commit comments

Comments
 (0)