github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/cmd/gno/testdata/gno_test/flag_print-runtime-metrics.txtar (about) 1 # Test --print-runtime-metrics flag 2 3 gno test --print-runtime-metrics . 4 5 ! stdout .+ 6 stderr '--- runtime: cycle=[\d\.kM]+ imports=\d+ allocs=[\d\.kM]+\(\d\.\d\d%\)' 7 8 -- metrics.gno -- 9 package metrics 10 11 -- metrics_test.gno -- 12 package metrics 13 14 import ( 15 "testing" 16 ) 17 18 func TestTimeout(t *testing.T) { 19 for i := 0; i < 2; i++ { 20 println("plop") 21 } 22 } 23