Project

General

Profile

Support #15830

Reduce number of lock calls in MetricManager

Added by Eric Flumerfelt over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
artdaq-utilities
Start date:
03/10/2017
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

To make MetricManager::sendMetric calls as fast and efficient as possible, I needed to reduce the amount of time spent in critical sections of the code. To this end, the metric-sending thread moves all the elements of the pending metric list to a thread-local variable instead of moving them out one-at-a-time.



Also available in: Atom PDF