org.HdrHistogram.SingleWriterRecorder Java Examples
The following examples show how to use
org.HdrHistogram.SingleWriterRecorder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JvmHiccupSensor.java From titus-control-plane with Apache License 2.0 | 5 votes |
public JvmHiccupSensor(HiccupRecorderConfiguration configuration, Registry registry) { super(configuration, registry); this.executor = new Thread(this, "jvmHiccupSensor"); this.executor.setDaemon(true); this.recorder = new SingleWriterRecorder(LOWEST_TRACKABLE_VALUE, HIGHEST_TRACKABLE_VALUE, NUMBER_OF_SIGNIFICANT_DIGITS); this.metrics = new HiccupSensorMetrics("titus.hiccup.jvm", registry); executor.start(); }
Example #2
Source File: RxJavaComputationSchedulerSensor.java From titus-control-plane with Apache License 2.0 | 5 votes |
WorkerTaskScheduler(Thread workerThread, Worker worker) { this.worker = worker; this.workerThread = workerThread; this.metrics = new HiccupSensorMetrics("titus.hiccup.computationScheduler", singletonMap("thread", workerThread.getName()), registry); this.recorder = new SingleWriterRecorder(LOWEST_TRACKABLE_VALUE, HIGHEST_TRACKABLE_VALUE, NUMBER_OF_SIGNIFICANT_DIGITS); registry.gauge( registry.createId("titus.hiccup.computationScheduler.pendingTaskDuration", singletonMap("thread", workerThread.getName())), 0, v -> getPendingTaskRunningTime() ); doRun(); }