Skip to content

Instantly share code, notes, and snippets.

@autoletics
Created January 29, 2017 17:06
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/0f9553ac2480eba478eebd5f778c85b3 to your computer and use it in GitHub Desktop.
Save autoletics/0f9553ac2480eba478eebd5f778c85b3 to your computer and use it in GitHub Desktop.
ChangePoint cp = cs.changepoint(name(Reflection.class).name("ingress"));
// if the method was instrumented and metered
if(cp != null) {
Change c = cp.change(name("clock").name("time"));
// if the clock.time meter was measured
if(c != null)
out.format("%2d %s\n", c.getCount(), cp.getName());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment