com.vmware.sqlfire.tools.sizer
Class SQLFireInstrumentation
java.lang.Object
com.vmware.sqlfire.tools.sizer.SQLFireInstrumentation
public class SQLFireInstrumentation
- extends Object
Class that honors "-javaagent:.../lib/sqlfiretools.jar"
It gets a handle to instrumentation agent for estimating
object size in memory.
If any of the classes below is altered, please test it in following way
as I am yet to find java agent instrumentation before starting
VM in a DUnit, a hydra test will be required.
SQLFireInstrumentation
ObjectSizer
Second mechanism of instrumenting after JVM is launched doesn't works
correctly in current version 1.6
1. start locator
2. start server with -javaagent:.../lib/sqlfire.jar
3. start ij
4. execute 'select * from sys.memoryanalytics"
- Since:
- 1.6
premain
public static void premain(String agentArgs,
Instrumentation inst)
agentmain
public static void agentmain(String agentArgs,
Instrumentation inst)
sizeof
public long sizeof(Object objectToSize)
attachVirtualMachineAgent
public void attachVirtualMachineAgent()
Copyright © 2010-2011 VMware, Inc. All rights reserved.