Skip to content

Commit

Permalink
Send variable list with restart
Browse files Browse the repository at this point in the history
  • Loading branch information
cmears committed Jun 13, 2016
1 parent 1f9902c commit 8b3c1db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace Profiling {
sendOverSocket(node.get_node());
}

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

message::Node dummy_node;
Expand All @@ -157,6 +157,8 @@ namespace Profiling {
}

dummy_node.set_label(name);
if (variableList.size() > 0)
dummy_node.set_info(variableList);

sendOverSocket(dummy_node);
}
Expand Down
2 changes: 1 addition & 1 deletion connector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace Profiling {
void connect();

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

void done();

Expand Down

0 comments on commit 8b3c1db

Please sign in to comment.