MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / SampledObjectAlloc

Method SampledObjectAlloc

src/objectSampler.cpp:134–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134void ObjectSampler::SampledObjectAlloc(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread,
135 jobject object, jclass object_klass, jlong size) {
136 if (_enabled) {
137 recordAllocation(jvmti, jni, ALLOC_SAMPLE, object, object_klass, size);
138 }
139}
140
141void ObjectSampler::GarbageCollectionStart(jvmtiEnv* jvmti) {
142 live_refs.gc();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected