diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-04-15 12:36:36 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-04-15 13:23:33 +0000 |
| commit | ec1d9df37dba4a17065b091bbe9e03c9635cd0dc (patch) | |
| tree | d1c9767c3330e3704efd1d4fac8a007dd8be7df4 /prog/encoding_test.go | |
| parent | b6f969371dc1e824c76636c0d3754a91b55d69b9 (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.go | 4 |
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) } |
