Skip to content

Instantly share code, notes, and snippets.

@autoletics
Last active January 24, 2017 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save autoletics/aeb91c80ac54f9bafa1b7cd46ed9796e to your computer and use it in GitHub Desktop.
Save autoletics/aeb91c80ac54f9bafa1b7cd46ed9796e to your computer and use it in GitHub Desktop.
import org.jinspired.probes.Probes;
private static final Probes.Name NAME = Probes.name(C.class).name("m").name("b");
private void m() {
// ...
b: {
Probes.Probe p = Probes.begin(NAME);
try {
// the code execution metered
} finally {
p.end();
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment