aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encoding_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-04-15 12:36:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-04-15 13:23:33 +0000
commitec1d9df37dba4a17065b091bbe9e03c9635cd0dc (patch)
treed1c9767c3330e3704efd1d4fac8a007dd8be7df4 /prog/encoding_test.go
parentb6f969371dc1e824c76636c0d3754a91b55d69b9 (diff)
prog: profile what consumes space in exec encoding
Allow to profile how many bytes are consumed for what in the exec encoding. The profile shows there are not many opportunities left. 53% are consumed by data blobs. 13% for const args. 18% for non-arg things (syscall number, copyout index, props, etc).
Diffstat (limited to 'prog/encoding_test.go')
-rw-r--r--prog/encoding_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/encoding_test.go b/prog/encoding_test.go
index 42f16036c..e5d5a2d38 100644
--- a/prog/encoding_test.go
+++ b/prog/encoding_test.go
@@ -404,11 +404,11 @@ func TestSerializeDeserializeRandom(t *testing.T) {
if ok {
t.Log("flaky?")
}
- decoded0, err := target.DeserializeExec(data0[:n0])
+ decoded0, err := target.DeserializeExec(data0[:n0], nil)
if err != nil {
t.Fatal(err)
}
- decoded1, err := target.DeserializeExec(data1[:n1])
+ decoded1, err := target.DeserializeExec(data1[:n1], nil)
if err != nil {
t.Fatal(err)
}