这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@captncraig
Copy link
Contributor

Here we emit metrics about how long a method spent waiting for a lock, as well as how long it held it.

I suspect the slowness on the dashboard is related to lock contention, and this should help diagnose it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time.Now().Sub(start) -> time.Since(start)

@madelynnblue
Copy link
Contributor

LGTM if you squish it.

captncraig added a commit that referenced this pull request Jul 1, 2015
bosun: Adding instrumentation around schedule lock.
@captncraig captncraig merged commit c853352 into master Jul 1, 2015
@captncraig captncraig deleted the lockStats branch July 1, 2015 21:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants