A C F I P R S T U V 

A

addSampler(Sampler) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationRecorder
Adds a Sampler that will get run every time an allocation is performed from Java code.
AllocationInstrumenter - Class in com.google.monitoring.runtime.instrumentation
Instruments bytecodes that allocate heap memory to call a recording hook.
AllocationInstrumenterBootstrap - Class in com.google.monitoring.runtime.instrumentation
Add the agent to the bootclasspath before invoking premain().
AllocationInstrumenterBootstrap() - Constructor for class com.google.monitoring.runtime.instrumentation.AllocationInstrumenterBootstrap
 
AllocationRecorder - Class in com.google.monitoring.runtime.instrumentation
The logic for recording allocations, called from bytecode rewritten by AllocationInstrumenter.
AllocationRecorder() - Constructor for class com.google.monitoring.runtime.instrumentation.AllocationRecorder
 

C

com.google.monitoring.runtime.instrumentation - package com.google.monitoring.runtime.instrumentation
 
ConstructorCallback<T> - Interface in com.google.monitoring.runtime.instrumentation
This interface describes a function that is used to sample a constructor.
ConstructorInstrumenter - Class in com.google.monitoring.runtime.instrumentation
Instruments bytecode by inserting a specified call in the constructor of a given class.

F

FAIL_TOO_LONG - com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter.State
 

I

instrument(byte[], Class<?>) - Static method in class com.google.monitoring.runtime.instrumentation.ConstructorInstrumenter
Given the bytes representing a class, add invocations of the ConstructorCallback method to the constructor.
instrument(byte[], ClassLoader) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationInstrumenter
 
instrument(byte[], String, String, ClassLoader) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationInstrumenter
Given the bytes representing a class, go through all the bytecode in it and instrument any occurrences of new/newarray/anewarray/multianewarray with pre- and post-allocation hooks.
instrumentClass(Class<?>, ConstructorCallback<?>) - Static method in class com.google.monitoring.runtime.instrumentation.ConstructorInstrumenter
Ensures that the given sampler will be invoked every time a constructor for class c is invoked.
invokeSamplers(Object) - Static method in class com.google.monitoring.runtime.instrumentation.ConstructorInstrumenter
Bytecode is rewritten to invoke this method; it calls the sampler for the given class.
isVerified() - Method in class com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter
Gets the verification state of this class.

P

PASS - com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter.State
 
premain(String, Instrumentation) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationInstrumenter
 
premain(String, Instrumentation) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationInstrumenterBootstrap
 

R

recordAllocation(int, String, Object) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationRecorder
Records the allocation.
recordAllocation(Class<?>, Object) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationRecorder
 
recordAllocationForceForTest(int, String, Object) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationRecorder
Helper method to force recording; for unit tests only.
recordAllocationForceForTestReal(int, String, Object, int) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationRecorder
Helper method to force recording; for unit tests only.
removeSampler(Sampler) - Static method in class com.google.monitoring.runtime.instrumentation.AllocationRecorder
Removes the given Sampler.

S

sample(T) - Method in interface com.google.monitoring.runtime.instrumentation.ConstructorCallback
When an object implementing interface ConstructorCallback is passed to ConstructorInstrumenter.instrumentClass(Class, ConstructorCallback), it will get executed whenever a constructor for type T is invoked.
sampleAllocation(int, String, Object, long) - Method in interface com.google.monitoring.runtime.instrumentation.Sampler
Determines whether the object currently being allocated, with the given size, should be traced.
Sampler - Interface in com.google.monitoring.runtime.instrumentation
This interface describes a function that is used to sample an allocation.

T

toByteArray() - Method in class com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter
Returns the byte array that contains the byte code for this class.
transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class com.google.monitoring.runtime.instrumentation.AllocationInstrumenter
 
transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) - Method in class com.google.monitoring.runtime.instrumentation.ConstructorInstrumenter

U

UNKNOWN - com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter.State
 

V

valueOf(String) - Static method in enum com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter.State
Returns an array containing the constants of this enum type, in the order they are declared.
VerifyingClassAdapter - Class in com.google.monitoring.runtime.instrumentation
This is a class writer that gets used in place of the existing ClassWriter, and verifies properties of the class getting written.
VerifyingClassAdapter(ClassWriter, byte[], String) - Constructor for class com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter
 
VerifyingClassAdapter.State - Enum in com.google.monitoring.runtime.instrumentation
An enum which indicates whether the class in question is verified.
visitEnd() - Method in class com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter
visitMethod(int, String, String, String, String[]) - Method in class com.google.monitoring.runtime.instrumentation.VerifyingClassAdapter
In addition, the returned MethodVisitor will throw an exception if the method is greater than 64K in length.
A C F I P R S T U V 
Skip navigation links

Copyright © 2009–2018 Google, Inc.. All rights reserved.