Add histogram for RoundSocket::addEvents

Track this function and event size distribution.
pull/5153/head
Isaac Levy 2019-05-29 10:25:33 -04:00
parent d791ea8cb0
commit bf2f337507
2 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,8 @@ object mon {
val lateClient = inc(s"round.history.$platform.versionCheck.lateClient")
}
}
val newEvents = rec("round.history.newEvents")
object mobile extends PlatformHistory("mobile")
object site extends PlatformHistory("site")
def apply(isMobile: lila.common.IsMobile): PlatformHistory =

View File

@ -287,6 +287,7 @@ private[round] final class RoundSocket(
}
def notify(events: Events): Unit = {
lila.mon.round.history.newEvents(events.size)
val vevents = history addEvents events
members.foreachValue { m =>
batchMsgs(m, vevents) foreach m.push