Fix CONCURRENCY_VISUALIZER build break (#8664)

This commit is contained in:
Tracy Sharpe 2021-08-09 19:32:08 -07:00 committed by GitHub
parent 1a2b41dbbc
commit f0073308d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -165,8 +165,8 @@ Status PartialExecutor::Execute(const SessionState& session_state, const std::ve
#ifdef CONCURRENCY_VISUALIZER
// need unique name for the series. number of nodes should be good enough for a subgraph
char series_name[MaxSeriesNameLengthInChars] = "MainGraph";
if (graph_viewer->IsSubgraph()) {
auto s = graph_viewer->ParentNode()->Name().substr(0, MaxSeriesNameLengthInChars - 1);
if (graph_viewer.IsSubgraph()) {
auto s = graph_viewer.ParentNode()->Name().substr(0, MaxSeriesNameLengthInChars - 1);
std::copy(s.cbegin(), s.cend(), series_name);
}

View file

@ -169,8 +169,8 @@ Status SequentialExecutor::Execute(const SessionState& session_state, const std:
#ifdef CONCURRENCY_VISUALIZER
// need unique name for the series. number of nodes should be good enough for a subgraph
char series_name[MaxSeriesNameLengthInChars] = "MainGraph";
if (graph_viewer->IsSubgraph()) {
auto s = graph_viewer->ParentNode()->Name().substr(0, MaxSeriesNameLengthInChars - 1);
if (graph_viewer.IsSubgraph()) {
auto s = graph_viewer.ParentNode()->Name().substr(0, MaxSeriesNameLengthInChars - 1);
std::copy(s.cbegin(), s.cend(), series_name);
}