-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
reinago
commented
Jul 29, 2021
•
edited
Loading
edited
- 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
- 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.
- still exlodes though.
- TODO: identifying calls by their pointer seems to be a bad idea
#endif | ||
res = this->callee->InCall(this->funcMap[func], *this); | ||
#ifdef PROFILING | ||
if (gl_started) { | ||
CallProfiling::qm->Stop(this->callee->GetCoreInstance()->GetFrameID()); |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this 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