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

Profiling bytecode #6

Open
chrisdembia opened this issue Jan 9, 2014 · 1 comment
Open

Profiling bytecode #6

chrisdembia opened this issue Jan 9, 2014 · 1 comment

Comments

@chrisdembia
Copy link
Owner

http://java-source.net/open-source/profilers

http://stackoverflow.com/questions/11345034/how-many-bytes-of-bytecode-has-a-particular-method-in-java

javap -c mypackage.MyClass

@chrisdembia
Copy link
Owner Author

I tried using Clock.getBytecodeNum(); at the beginning and end of a method to see how much bytecode one function used. Then I looked at the output of javap ... for that same method, with the intent of being able to interpret javap .... It helped a little; I was off by 1 kinda (the in-code difference gave 41 sometimes, and 11 other times; the bytecode difference with javap was about 40).

I think what we can do for now, aside from looking at javap ... (which is really easy and nice! though hard to interpret), is, just before calling yield(), set an indicator string to the # of bytecode used in that turn.

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