| 1258 | } |
| 1259 | |
| 1260 | void 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 | |
| 1269 | void JNICALL Instrument::recordExit0(JNIEnv* jni, jobject unused, jlong startTimeNs) { |
| 1270 | if (!_enabled) return; |
nothing calls this directly
no test coverage detected