com.github.marschall.micrometer.jfr.JfrFunctionTimerEvent Maven / Gradle / Ivy
package com.github.marschall.micrometer.jfr;
import io.micrometer.core.instrument.Meter.Id;
import jdk.jfr.Event;
final class JfrFunctionTimerEvent extends AbstractJfrMeterEvent {
JfrFunctionTimerEvent(Id id, Event event) {
super(id, event);
}
void setTotalTimeAndCount(double totalTime, double count) {
int attributeIndex = 0;
attributeIndex = this.setCommonEventAttributes(attributeIndex);
event.set(attributeIndex++, totalTime);
event.set(attributeIndex++, count);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy