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

Method recordEntry

src/instrument.cpp:1260–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258}
1259
1260void JNICALL Instrument::recordEntry(JNIEnv* jni, jobject unused) {
1261 if (!_enabled) return;
1262
1263 if (shouldRecordSample()) {
1264 ExecutionEvent event(TSC::ticks());
1265 Profiler::instance()->recordSample(NULL, _interval, INSTRUMENTED_METHOD, &event);
1266 }
1267}
1268
1269void JNICALL Instrument::recordExit0(JNIEnv* jni, jobject unused, jlong startTimeNs) {
1270 if (!_enabled) return;

Callers

nothing calls this directly

Calls 1

recordSampleMethod · 0.80

Tested by

no test coverage detected