Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple XVIZWorkersMonitor instance from XVIZWorkersStatus component #323

Conversation

marionleborgne
Copy link
Contributor

  • Decouple XVIZWorkersMonitor instance from XVIZWorkersStatus component [1]
  • Rename "debug" to "perf"
  • Add some JS docs

[1] Previously the XVIZWorkersMonitor was instantiated (and linked to the log) on component mount. That was a mistake as the log can be destroyed and recreated independently from the component being mounted. This refactor extracts the log monitor from the component. We now only have view components to visualize the perf metrics that they receive as props. The log monitor creation & wiring can be handled outside of the view logic.

@@ -103,23 +117,45 @@ class Example extends PureComponent {
})
.on('error', console.error)
.connect();

// Monitor the log
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the example app to reflect how the XVIZWorkersMonitor is now decoupled from the perf view components and its metrics passed as props to those view components.

@marionleborgne marionleborgne merged commit fba632b into aurora-opensource:master May 13, 2019
@marionleborgne marionleborgne deleted the debug-panel-improvements branch May 13, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants