Skip to content

Commit e4fdbf8

Browse files
inline histogram record
1 parent ba92571 commit e4fdbf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Prometheus/Histogram.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public final class Histogram<Value: Bucketable>: Sendable {
5656
self.box = .init(.init(buckets: buckets))
5757
}
5858

59+
@inlinable
5960
public func record(_ value: Value) {
6061
self.box.withLockedValue { state in
6162
for i in state.buckets.startIndex..<state.buckets.endIndex {

0 commit comments

Comments
 (0)