Accessing Virtual machine internal?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing Virtual machine internal?

abergel
Hi!

Is there a way to get access to the VM internals? For example the size of the method cache and the number of JIT-compiled methods?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: Accessing Virtual machine internal?

Nicolai Hess-3-2


2016-11-07 13:37 GMT+01:00 Alexandre Bergel <[hidden email]>:
Hi!

Is there a way to get access to the VM internals? For example the size of the method cache and the number of JIT-compiled methods?

I don't know about the method cache siize, but for the number of JIT-Compiled methods is a primitive (a VMParameter)
 

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: Accessing Virtual machine internal?

Clément Béra
In reply to this post by abergel

Yes.

Evaluate "Smalltalk vm parameterAt: 46" it should get you the machine code zone size.

You can look into the comment in the VirtualMachine class or in VirtualMachine>>getParameters method comment to see what VM internal is available.


On Nov 7, 2016 19:37, "Alexandre Bergel" <[hidden email]> wrote:
Hi!

Is there a way to get access to the VM internals? For example the size of the method cache and the number of JIT-compiled methods?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.