Skip to content

Instantly share code, notes, and snippets.

@jsyeo
Created January 4, 2016 15:12
Show Gist options
  • Save jsyeo/e39e2393f458105f4848 to your computer and use it in GitHub Desktop.
Save jsyeo/e39e2393f458105f4848 to your computer and use it in GitHub Desktop.
debug print
private String debugString(CallChain cc) {
StringBuilder sb = new StringBuilder();
for (CallSite cs : cc) {
sb.append(cs.getCaller().getClassName());
sb.append(".");
sb.append(cs.getCaller().getMethodName());
sb.append("->");
}
sb.append(cc.last().getCallee().getMethodName());
return sb.toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment