testing.B.Loop() standardization and StackAsync.Debug improvement (#156)

* testing.B.Loop() standardization and StackAsync.Debug heap debugging improvement

* apply @MDr164 fixes

* @MDr164 great suggestions to prevent panic and print correct mallocs
This commit is contained in:
Pat Whittingslow
2026-07-17 11:59:27 -03:00
committed by GitHub
parent 766e03e90e
commit 157a8537a2
10 changed files with 64 additions and 45 deletions
+8 -1
View File
@@ -2,7 +2,11 @@
package xnet
import "os"
import (
"os"
"github.com/soypat/lneto/internal"
)
var _pcap CapturePrinter
@@ -14,4 +18,7 @@ func init() {
func debugPacket(msg string, b []byte) {
_pcap.PrintEthernet(msg, b)
if internal.HeapAllocDebugging {
internal.LogAllocs(msg)
}
}