Package com.google.monitoring.runtime.instrumentation

Examples of com.google.monitoring.runtime.instrumentation.Sampler


            return Long.valueOf(0L);
        }
    };

    public InstrumentedThreadAllocationTracer() {
        AllocationRecorder.addSampler(new Sampler() {
            @Override
            public void sampleAllocation(int count, String desc, Object newObject, long size) {
                allocationSize.set(allocationSize.get() + size);
            }
        });
View Full Code Here


                return new AtomicLong();
            }
    };

    public void RequestAllocationRecorder() {
        AllocationRecorder.addSampler(new Sampler() {
            @Override
            public void sampleAllocation(int count, String desc, Object newObject, long size) {
                allocationSize.get().addAndGet(size);
            }
        });
View Full Code Here

TOP

Related Classes of com.google.monitoring.runtime.instrumentation.Sampler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.