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

Retro refactoring #2

Open
JonathanMace opened this issue Oct 27, 2016 · 0 comments
Open

Retro refactoring #2

JonathanMace opened this issue Oct 27, 2016 · 0 comments

Comments

@JonathanMace
Copy link
Member

In general, it's cool and useful to be able to attach callbacks to resource consumption events.

Retro does this using aspects. It would be nice to refactor some of this code so that:

  1. Retro's callbacks aren't tied in to the instrumentation code (eg, have them explicitly attached), so that others can reuse the code
  2. Implement some sort of general way to define events, and then allow people to attach to them.

For example, the simplest use would be:

on("disk-read", myCallback);

For this to 'just work' would be marvellous. We're pretty much there -- we have the working code and instrumentation -- we just now need it to be organized in the right way.

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

No branches or pull requests

1 participant