Accessing Virtual machine internal?
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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
2016-11-07 13:37 GMT+01:00 Alexandre Bergel <alexandre.bergel@me.com>:
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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
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" <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
participants (3)
-
Alexandre Bergel -
Clément Bera -
Nicolai Hess