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

Profiling tests for Hagen #859

Merged
merged 59 commits into from
Oct 13, 2021
Merged

Conversation

reinago
Copy link
Member

@reinago reinago commented Jul 29, 2021

  • added profiling capabilities to calls (activate via ENABLE_PROFILING in CMake)
  • a bit of UX in configurator (nice graphs)
  • fix for event transport across ContextToGL modules
  • added CallCapabilities to enable asking Calls at runtime whether you should expect some kind of API at the other end

reinago and others added 27 commits July 29, 2021 17:24
- cmake option
- cpu timings in call
profile in modules instead?
- less dynamic querying
- keep track of callback names
- query is probably best fetched before it is used again
- TODO: still need double-buffering
- lazy init of my_query_id internal class is so bad.
- TODO: identifying calls by their pointer seems to be a bad idea
@braunms braunms self-requested a review August 5, 2021 13:54
#endif
res = this->callee->InCall(this->funcMap[func], *this);
#ifdef PROFILING
if (gl_started) {
CallProfiling::qm->Stop(this->callee->GetCoreInstance()->GetFrameID());
Copy link
Contributor

Choose a reason for hiding this comment

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

If we want to get rid of the core instance one day we need some other way to access the FrameID.

core/src/MegaMolGraph.cpp Outdated Show resolved Hide resolved
geringsj
geringsj previously approved these changes Sep 21, 2021
Copy link
Contributor

@geringsj geringsj left a comment

Choose a reason for hiding this comment

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

Looks good. Some clean up or refactoring could be done to remove profiling from MegaMolGraph and OpenGL_GLFW_Service, but the current implementation is ok for now.

@@ -0,0 +1,39 @@
/*
* Screenshot_Service.hpp
Copy link
Contributor

Choose a reason for hiding this comment

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

Might want to change that

geringsj
geringsj previously approved these changes Sep 30, 2021
Copy link
Contributor

@geringsj geringsj left a comment

Choose a reason for hiding this comment

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

Nothing out of the ordinary

geringsj
geringsj previously approved these changes Sep 30, 2021
geringsj
geringsj previously approved these changes Oct 1, 2021
@reinago reinago merged commit 6549c71 into UniStuttgart-VISUS:master Oct 13, 2021
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.

3 participants