func prepareAllMetricsSamples() (map[string]metrics.Description, []metrics.Sample) { … }
func TestReadMetrics(t *testing.T) { … }
func TestReadMetricsConsistency(t *testing.T) { … }
func BenchmarkReadMetricsLatency(b *testing.B) { … }
var readMetricsSink …
func TestReadMetricsCumulative(t *testing.T) { … }
func withinEpsilon(v1, v2, e float64) bool { … }
func TestMutexWaitTimeMetric(t *testing.T) { … }
type locker2 …
type mutex …
func (m *mutex) Lock1() { … }
func (m *mutex) Unlock1() { … }
func (m *mutex) Lock2() { … }
func (m *mutex) Unlock2() { … }
type rwmutexWrite …
func (m *rwmutexWrite) Lock1() { … }
func (m *rwmutexWrite) Unlock1() { … }
func (m *rwmutexWrite) Lock2() { … }
func (m *rwmutexWrite) Unlock2() { … }
type rwmutexReadWrite …
func (m *rwmutexReadWrite) Lock1() { … }
func (m *rwmutexReadWrite) Unlock1() { … }
func (m *rwmutexReadWrite) Lock2() { … }
func (m *rwmutexReadWrite) Unlock2() { … }
type rwmutexWriteRead …
func (m *rwmutexWriteRead) Lock1() { … }
func (m *rwmutexWriteRead) Unlock1() { … }
func (m *rwmutexWriteRead) Lock2() { … }
func (m *rwmutexWriteRead) Unlock2() { … }
func generateMutexWaitTime(mu locker2) time.Duration { … }
func TestCPUMetricsSleep(t *testing.T) { … }
func testSchedPauseMetrics(t *testing.T, fn func(t *testing.T), isGC bool) { … }
func TestSchedPauseMetrics(t *testing.T) { … }
func TestRuntimeLockMetricsAndProfile(t *testing.T) { … }
type contentionWorker …
func (w *contentionWorker) run() { … }
func TestCPUStats(t *testing.T) { … }
func TestMetricHeapUnusedLargeObjectOverflow(t *testing.T) { … }