Skip to content

Commit

Permalink
Merge pull request eclipse-iceoryx#2300 from tobiasstarkwayve/iox-229…
Browse files Browse the repository at this point in the history
…9-add-port-count-to-introspection-client

iox-eclipse-iceoryx#2299 Add port counts to introspection client
  • Loading branch information
elBoberido authored Jun 6, 2024
2 parents cb2608a + 78ae6b7 commit 7b0dabe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
- Add support for `iox::string` in `NamedPipe` and created `named_pipe.inl` [#1693](https://github.com/eclipse-iceoryx/iceoryx/issues/1693)
- Add an `iox1` prefix to all resources created by `iceoryx_posh` and `RouDi` [#2185](https://github.com/eclipse-iceoryx/iceoryx/issues/2185)
- Make iceoryx resource prefix a compile time option [#2272](https://github.com/eclipse-iceoryx/iceoryx/issues/2272)
- Improve introspection-client interface by adding the number of ports in parentheses [#2299](https://github.com/eclipse-iceoryx/iceoryx/issues/2299)

**Bugfixes:**

Expand Down
6 changes: 4 additions & 2 deletions tools/introspection/source/introspection_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ void IntrospectionApp::printPortIntrospectionData(const std::vector<ComposedPubl
constexpr int32_t scopeWidth{12};
constexpr int32_t interfaceSourceWidth{8};

prettyPrint("Publisher Ports\n", PrettyOptions::bold);
prettyPrint(std::string("Publisher Ports (") + std::to_string(publisherPortData.size()) + ")\n",
PrettyOptions::bold);

wprintw(pad, " %*s |", serviceWidth, "Service");
wprintw(pad, " %*s |", instanceWidth, "Instance");
Expand Down Expand Up @@ -445,7 +446,8 @@ void IntrospectionApp::printPortIntrospectionData(const std::vector<ComposedPubl
}
wprintw(pad, "\n");

prettyPrint("Subscriber Ports\n", PrettyOptions::bold);
prettyPrint(std::string("Subscriber Ports (") + std::to_string(subscriberPortData.size()) + ")\n",
PrettyOptions::bold);

wprintw(pad, " %*s |", serviceWidth, "Service");
wprintw(pad, " %*s |", instanceWidth, "Instance");
Expand Down

0 comments on commit 7b0dabe

Please sign in to comment.