-
Notifications
You must be signed in to change notification settings - Fork 2
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
logging execution traces #2
Comments
With some design guidance maybe this could be a good undergraduate project? |
Macros to turn on or there might even be something clever we can do with template specialization. Would want to think about where the best place to inject the tracking is, though. Because the user could want to track different sources of function calls (e.g., might have various types of signals and want to differentiate which signal/call types trigger which functions). But, yes! This would be a great candidate for undergrad project + a trace web visualization tool (that I would be more than happy to pair program out)! |
I've also been tracking regulation with a similar paste-in into MatchBin on Empirical, which I figured I'd throw on here in hopes of one day putting together a better way to accomplish this.
|
one idea could be to just hook logging up to the debug macro so that if you compile in debug mode you get logging, too |
lately I've found the following "hack-on" to old SGP's
FindBestFuncMatch
super useful for tracing which modules are activating/calling other modules. It's nice using a staticseen
data structure because it makes it really easy to evaluate over a population. This could possibly also be practicable without a static data structure, though, too. Later in the post-processing pipeline (or maybe if we're clever it would be convenient to be able to somehow in the logging process) we could just filter out duplicate caller/callee pairs.Maybe we could wrap something of the like (but with proper logging instead of just printing, etc.) in a ifndef macro so it would be super easy to activate? Maybe there are other logging features we could activate via macro? or maybe a better way?
The text was updated successfully, but these errors were encountered: