JVM instructions for executing a set of algorithum
This more of a concept question. Wondering if any one of you have come across any way to capture instructions passed by JVM to OS while executing a set of algorithm.

The thing is if we take say performance of an application, it has way too many variables such as # of process, # of CPU's, speed of CPU, available memory etc. etc.
What I am looking for is some way to abstract all those dependencies out, so basically it all boils down to the number of instructions passed by JVM and depending on other variables those instructions can be executed faster or slower. 

Is there any way one can hook in such code may be native and get those information ?

I know its really abstract but not sure if I can put that in any simpler form.

Thanks
JVM instructions for executing a set of algorithum
===

This more of a concept question. Wondering if any one of you have come across any way to capture instructions passed by JVM to OS while executing a set of algorithm.

The thing is if we take say performance of an application, it has way too many variables such as # of process, # of CPU's, speed of CPU, available memory etc. etc.
What I am looking for is some way to abstract all those dependencies out, so basically it all boils down to the number of instructions passed by JVM and depending on other variables those instructions can be executed faster or slower. 

Is there any way one can hook in such code may be native and get those information ?

I know its really abstract but not sure if I can put that in any simpler form.

Thanks