From 9c561c2af5480b64352501103684292ba2970352 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 22 May 2025 13:09:07 -0300 Subject: src/stm.go: Remove ad-hoc profiling code --- src/stm.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/stm.go b/src/stm.go index ef9e512..41359af 100644 --- a/src/stm.go +++ b/src/stm.go @@ -261,20 +261,12 @@ var ( tx.cond.L = &tx.mu return tx }} - failedCommitsProfile *pprof.Profile ) const ( - profileFailedCommits = false sleepBetweenRetries = false ) -func init() { - if profileFailedCommits { - failedCommitsProfile = pprof.NewProfile("stmFailedCommits") - } -} - func newTx() *Tx { tx := txPool.Get().(*Tx) tx.tries = 0 @@ -328,9 +320,6 @@ retry: if tx.inputsChanged() { tx.unlock() expvars.Add("failed commits", 1) - if profileFailedCommits { - failedCommitsProfile.Add(new(int), 0) - } goto retry } // commit the write log and broadcast that variables have changed -- cgit v1.2.3