Skip to content

Commit

Permalink
Update observations
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Dec 14, 2023
1 parent 8e435fe commit 4d0acaf
Show file tree
Hide file tree
Showing 36 changed files with 3,513 additions and 3,513 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
" 0 begin": "cpu:0, mem:0, prngs:-/-, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-",
" 1 end": "cpu:676167, mem:155108, prngs:-/-, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-"
" 1 end": "cpu:674749, mem:154949, prngs:-/-, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-"
}
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
" 0 begin": "cpu:14488, mem:0, prngs:-/9b4a753, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-",
" 1 call bytes_new_from_slice(2087)": "cpu:14535",
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:16016, mem:2167, objs:-/1@82043365",
" 1 call bytes_new_from_slice(2083)": "cpu:14535",
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:16016, mem:2163, objs:-/1@9756507e",
" 3 call upload_wasm(Bytes(obj#1))": "",
" 4 ret upload_wasm -> Ok(Bytes(obj#3))": "cpu:1472648, mem:1331847, objs:-/2@8dc77fa6, store:-/1@10bf92fd, foot:1@3cc5f487",
" 5 call bytes_new_from_slice(32)": "cpu:1473088, mem:1331911, objs:-/3@a780f4a1",
" 6 ret bytes_new_from_slice -> Ok(Bytes(obj#7))": "cpu:1474057, mem:1332023, objs:-/4@5441559c",
" 4 ret upload_wasm -> Ok(Bytes(obj#3))": "cpu:1471010, mem:1331681, objs:-/2@d86f64f8, store:-/1@8aa0f72d, foot:1@402f7273",
" 5 call bytes_new_from_slice(32)": "cpu:1471450, mem:1331745, objs:-/3@b11e9896",
" 6 ret bytes_new_from_slice -> Ok(Bytes(obj#7))": "cpu:1472419, mem:1331857, objs:-/4@fe7e3483",
" 7 call create_contract(Address(obj#5), Bytes(obj#3), Bytes(obj#7))": "",
" 8 call obj_cmp(Address(obj#9), Address(obj#5))": "cpu:1475700, mem:1332201, objs:-/5@6cbc65d6, auth:1@6a5ef2c9/-",
" 9 ret obj_cmp -> Ok(0)": "cpu:1475992",
" 10 call get_ledger_network_id()": "cpu:1476042, auth:1@6a5ef2c9/1@18e127e2",
" 11 ret get_ledger_network_id -> Ok(Bytes(obj#11))": "cpu:1477072, mem:1332313, objs:-/6@f5a2751f",
" 12 ret create_contract -> Ok(Address(obj#13))": "cpu:1495205, mem:1335387, objs:-/7@e8892517, store:-/2@29c9b16f, foot:2@53a52acb, auth:-/1@233e284a",
" 13 call call(Address(obj#13), Symbol(bin_word), Vec(obj#15))": "cpu:1496168, mem:1335475, objs:-/8@4c0b0eb3, auth:-/-",
" 14 push VM:75130317:bin_word(U32(2864434397))": "cpu:2840876, mem:2665649, objs:-/9@181ddb96, vm:1114112@67b8985c/12@d32baa7b, stk:1@be273e0f, auth:1@b86eb558/-",
" 15 call bytes_new_from_linear_memory(U32(1048572), U32(4))": "cpu:2843349, mem:2665695, vm:-/-",
" 16 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#19))": "cpu:2845331, mem:2665779, objs:-/10@8f3713f0",
" 17 pop VM:75130317:bin_word -> Ok(Bytes(obj#19))": "cpu:2845827, mem:2665803, objs:1@7f18fa80/10@8f3713f0, vm:1114112@a2a6f9c8/12@d32baa7b, stk:1@b4a13456",
" 18 ret call -> Ok(Bytes(obj#19))": "cpu:2845888, objs:-/10@8f3713f0, vm:-/-, stk:-, auth:-/-",
" 19 call obj_cmp(Bytes(obj#19), Bytes(obj#21))": "cpu:2846849, mem:2665887, objs:-/11@3023d359",
" 20 ret obj_cmp -> Ok(0)": "cpu:2847137",
" 21 call vec_new()": "cpu:2848098, mem:2665971, objs:-/12@82e455c7",
" 22 ret vec_new -> Ok(Vec(obj#25))": "cpu:2848599, mem:2666035, objs:-/13@40e25a5c",
" 8 call obj_cmp(Address(obj#9), Address(obj#5))": "cpu:1474062, mem:1332035, objs:-/5@5b91d41a, auth:1@bd3d9bc3/-",
" 9 ret obj_cmp -> Ok(0)": "cpu:1474354",
" 10 call get_ledger_network_id()": "cpu:1474404, auth:1@bd3d9bc3/1@e4fb0e0a",
" 11 ret get_ledger_network_id -> Ok(Bytes(obj#11))": "cpu:1475434, mem:1332147, objs:-/6@3d9cc264",
" 12 ret create_contract -> Ok(Address(obj#13))": "cpu:1493567, mem:1335221, objs:-/7@a35224ce, store:-/2@bbc2567e, foot:2@d56e1445, auth:-/1@2d7b187d",
" 13 call call(Address(obj#13), Symbol(bin_word), Vec(obj#15))": "cpu:1494530, mem:1335309, objs:-/8@ca59ac27, auth:-/-",
" 14 push VM:78a9f1d6:bin_word(U32(2864434397))": "cpu:2837819, mem:2665321, objs:-/9@90656692, vm:1114112@67b8985c/12@d32baa7b, stk:1@7984cd52, auth:1@b86eb558/-",
" 15 call bytes_new_from_linear_memory(U32(1048572), U32(4))": "cpu:2840292, mem:2665367, vm:-/-",
" 16 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#19))": "cpu:2842274, mem:2665451, objs:-/10@aced1daf",
" 17 pop VM:78a9f1d6:bin_word -> Ok(Bytes(obj#19))": "cpu:2842770, mem:2665475, objs:1@7f18fa80/10@aced1daf, vm:1114112@a2a6f9c8/12@d32baa7b, stk:1@a4c9c540",
" 18 ret call -> Ok(Bytes(obj#19))": "cpu:2842831, objs:-/10@aced1daf, vm:-/-, stk:-, auth:-/-",
" 19 call obj_cmp(Bytes(obj#19), Bytes(obj#21))": "cpu:2843792, mem:2665559, objs:-/11@a626efcb",
" 20 ret obj_cmp -> Ok(0)": "cpu:2844080",
" 21 call vec_new()": "cpu:2845041, mem:2665643, objs:-/12@39372a3a",
" 22 ret vec_new -> Ok(Vec(obj#25))": "cpu:2845542, mem:2665707, objs:-/13@cf50ec08",
" 23 call vec_push_back(Vec(obj#25), Bytes(obj#23))": "",
" 24 ret vec_push_back -> Ok(Vec(obj#27))": "cpu:2849806, mem:2666123, objs:-/14@b6924a77",
" 24 ret vec_push_back -> Ok(Vec(obj#27))": "cpu:2846749, mem:2665795, objs:-/14@a043148a",
" 25 call call(Address(obj#13), Symbol(bin_inc), Vec(obj#27))": "",
" 26 push VM:75130317:bin_inc(Bytes(obj#23))": "cpu:4194514, mem:3996297, objs:-/15@c506ccd2, vm:1114112@67b8985c/12@d32baa7b, stk:1@47d8fa40, auth:1@251a9ba2/-",
" 27 call bytes_len(Bytes(obj#23))": "cpu:4197422, mem:3996367, objs:1@b5962073/15@c506ccd2, vm:-/-, stk:1@1e1dc600",
" 28 ret bytes_len -> Ok(U32(4))": "cpu:4198862",
" 26 push VM:78a9f1d6:bin_inc(Bytes(obj#23))": "cpu:4190038, mem:3995807, objs:-/15@50544ee2, vm:1114112@67b8985c/12@d32baa7b, stk:1@669d5fd4, auth:1@251a9ba2/-",
" 27 call bytes_len(Bytes(obj#23))": "cpu:4192946, mem:3995877, objs:1@b5962073/15@50544ee2, vm:-/-, stk:1@9c70a78e",
" 28 ret bytes_len -> Ok(U32(4))": "cpu:4194386",
" 29 call bytes_copy_to_linear_memory(Bytes(obj#23), U32(0), U32(1048572), U32(4))": "",
" 30 ret bytes_copy_to_linear_memory -> Ok(Void)": "cpu:4199336",
" 30 ret bytes_copy_to_linear_memory -> Ok(Void)": "cpu:4194860",
" 31 call bytes_new_from_linear_memory(U32(1048572), U32(4))": "",
" 32 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#31))": "cpu:4201430, mem:3996451, objs:1@b5962073/16@4c245c5f",
" 33 pop VM:75130317:bin_inc -> Ok(Bytes(obj#31))": "cpu:4201926, mem:3996475, objs:2@a8b6a51c/16@4c245c5f, vm:1114112@2206e62e/12@d32baa7b, stk:1@aa3c8413",
" 34 ret call -> Ok(Bytes(obj#31))": "cpu:4201987, objs:-/16@4c245c5f, vm:-/-, stk:-, auth:-/-",
" 35 call obj_cmp(Bytes(obj#31), Bytes(obj#33))": "cpu:4202948, mem:3996559, objs:-/17@397f6f02",
" 36 ret obj_cmp -> Ok(0)": "cpu:4203236",
" 37 end": "cpu:4203236, mem:3996559, prngs:-/9b4a753, objs:-/17@397f6f02, vm:-/-, evt:-, store:-/2@29c9b16f, foot:2@53a52acb, stk:-, auth:-/-"
" 32 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#31))": "cpu:4196954, mem:3995961, objs:1@b5962073/16@9ae73439",
" 33 pop VM:78a9f1d6:bin_inc -> Ok(Bytes(obj#31))": "cpu:4197450, mem:3995985, objs:2@a8b6a51c/16@9ae73439, vm:1114112@2206e62e/12@d32baa7b, stk:1@36fed88f",
" 34 ret call -> Ok(Bytes(obj#31))": "cpu:4197511, objs:-/16@9ae73439, vm:-/-, stk:-, auth:-/-",
" 35 call obj_cmp(Bytes(obj#31), Bytes(obj#33))": "cpu:4198472, mem:3996069, objs:-/17@f97297f4",
" 36 ret obj_cmp -> Ok(0)": "cpu:4198760",
" 37 end": "cpu:4198760, mem:3996069, prngs:-/9b4a753, objs:-/17@f97297f4, vm:-/-, evt:-, store:-/2@bbc2567e, foot:2@d56e1445, stk:-, auth:-/-"
}
76 changes: 38 additions & 38 deletions soroban-env-host/observations/test__complex__run_complex_1.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
" 0 begin": "cpu:14488, mem:0, prngs:-/9b4a753, objs:-/-, vm:-/-, evt:-, store:-/-, foot:-, stk:-, auth:-/-",
" 1 call bytes_new_from_slice(873)": "cpu:14535",
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:15714, mem:953, objs:-/1@d38950f4",
" 1 call bytes_new_from_slice(869)": "cpu:14535",
" 2 ret bytes_new_from_slice -> Ok(Bytes(obj#1))": "cpu:15712, mem:949, objs:-/1@4d2f4445",
" 3 call upload_wasm(Bytes(obj#1))": "",
" 4 ret upload_wasm -> Ok(Bytes(obj#3))": "cpu:974902, mem:1281391, objs:-/2@52417d31, store:-/1@4f237ba1, foot:1@63794e7d",
" 5 call bytes_new_from_slice(32)": "cpu:975342, mem:1281455, objs:-/3@1299fa98",
" 6 ret bytes_new_from_slice -> Ok(Bytes(obj#7))": "cpu:976311, mem:1281567, objs:-/4@5a23318d",
" 4 ret upload_wasm -> Ok(Bytes(obj#3))": "cpu:973259, mem:1281224, objs:-/2@80aaf117, store:-/1@1f3f66ac, foot:1@74cac6df",
" 5 call bytes_new_from_slice(32)": "cpu:973699, mem:1281288, objs:-/3@40964e1f",
" 6 ret bytes_new_from_slice -> Ok(Bytes(obj#7))": "cpu:974668, mem:1281400, objs:-/4@73d40fb1",
" 7 call create_contract(Address(obj#5), Bytes(obj#3), Bytes(obj#7))": "",
" 8 call obj_cmp(Address(obj#9), Address(obj#5))": "cpu:977954, mem:1281745, objs:-/5@861905d4, auth:1@d11a3bce/-",
" 9 ret obj_cmp -> Ok(0)": "cpu:978246",
" 10 call get_ledger_network_id()": "cpu:978296, auth:1@d11a3bce/1@871749e",
" 11 ret get_ledger_network_id -> Ok(Bytes(obj#11))": "cpu:979326, mem:1281857, objs:-/6@af28baea",
" 12 ret create_contract -> Ok(Address(obj#13))": "cpu:997459, mem:1284931, objs:-/7@622c8fae, store:-/2@6a012548, foot:2@c5cade1a, auth:-/1@ff5d84b5",
" 13 call call(Address(obj#13), Symbol(go), Vec(obj#15))": "cpu:997899, mem:1284995, objs:-/8@52c37e3f, auth:-/-",
" 14 push VM:2c0dcac5:go()": "cpu:1911663, mem:2565911, objs:-/9@cbedd2d9, vm:1114112@c58cc467/5@8d05851, stk:1@34f84bc5, auth:1@afe23e00/-",
" 15 call get_ledger_network_id()": "cpu:1914132, mem:2565941, vm:-/-",
" 16 ret get_ledger_network_id -> Ok(Bytes(obj#19))": "cpu:1919403, mem:2566053, objs:-/10@e159b064",
" 17 call get_ledger_version()": "cpu:1919899, mem:2566077, objs:1@7f18fa80/10@e159b064, stk:1@31469f88",
" 18 ret get_ledger_version -> Ok(U32(20))": "cpu:1920209",
" 8 call obj_cmp(Address(obj#9), Address(obj#5))": "cpu:976311, mem:1281578, objs:-/5@d35e430e, auth:1@4061f60/-",
" 9 ret obj_cmp -> Ok(0)": "cpu:976603",
" 10 call get_ledger_network_id()": "cpu:976653, auth:1@4061f60/1@31434f5e",
" 11 ret get_ledger_network_id -> Ok(Bytes(obj#11))": "cpu:977683, mem:1281690, objs:-/6@7813ed27",
" 12 ret create_contract -> Ok(Address(obj#13))": "cpu:995816, mem:1284764, objs:-/7@fd4007a6, store:-/2@241febaa, foot:2@afe4dd4b, auth:-/1@e7180473",
" 13 call call(Address(obj#13), Symbol(go), Vec(obj#15))": "cpu:996256, mem:1284828, objs:-/8@2f8a69e9, auth:-/-",
" 14 push VM:b20f098b:go()": "cpu:1908599, mem:2565581, objs:-/9@3e8a13ca, vm:1114112@c58cc467/5@8d05851, stk:1@92e1b379, auth:1@afe23e00/-",
" 15 call get_ledger_network_id()": "cpu:1911068, mem:2565611, vm:-/-",
" 16 ret get_ledger_network_id -> Ok(Bytes(obj#19))": "cpu:1916339, mem:2565723, objs:-/10@64c3a4e6",
" 17 call get_ledger_version()": "cpu:1916835, mem:2565747, objs:1@7f18fa80/10@64c3a4e6, stk:1@b2644d68",
" 18 ret get_ledger_version -> Ok(U32(20))": "cpu:1917145",
" 19 call get_ledger_sequence()": "",
" 20 ret get_ledger_sequence -> Ok(U32(1234))": "cpu:1920519",
" 20 ret get_ledger_sequence -> Ok(U32(1234))": "cpu:1917455",
" 21 call get_ledger_timestamp()": "",
" 22 ret get_ledger_timestamp -> Ok(U64(1234))": "cpu:1920829",
" 22 ret get_ledger_timestamp -> Ok(U64(1234))": "cpu:1917765",
" 23 call compute_hash_sha256(Bytes(obj#19))": "",
" 24 ret compute_hash_sha256 -> Ok(Bytes(obj#21))": "cpu:1927761, mem:2566189, objs:1@7f18fa80/11@b06b5764",
" 25 call bytes_copy_to_linear_memory(Bytes(obj#21), U32(0), U32(1048504), U32(32))": "cpu:1928257, mem:2566213, objs:2@6b9b82ef/11@b06b5764, stk:1@f9a1a92",
" 26 ret bytes_copy_to_linear_memory -> Ok(Void)": "cpu:1928735",
" 24 ret compute_hash_sha256 -> Ok(Bytes(obj#21))": "cpu:1924697, mem:2565859, objs:1@7f18fa80/11@1d9ab4",
" 25 call bytes_copy_to_linear_memory(Bytes(obj#21), U32(0), U32(1048504), U32(32))": "cpu:1925193, mem:2565883, objs:2@6b9b82ef/11@1d9ab4, stk:1@2b941810",
" 26 ret bytes_copy_to_linear_memory -> Ok(Void)": "cpu:1925671",
" 27 call bytes_new_from_linear_memory(U32(1048504), U32(16))": "",
" 28 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#23))": "cpu:1929965, mem:2566309, objs:2@6b9b82ef/12@445b4c2d",
" 29 call vec_new()": "cpu:1930461, mem:2566333, objs:3@6a4b7989/12@445b4c2d, stk:1@b861e0c9",
" 30 ret vec_new -> Ok(Vec(obj#25))": "cpu:1931211, mem:2566397, objs:3@6a4b7989/13@9ebb839d",
" 31 call vec_push_back(Vec(obj#25), Bytes(obj#23))": "cpu:1931707, mem:2566421, objs:4@93597833/13@9ebb839d, stk:1@8bc54bac",
" 32 ret vec_push_back -> Ok(Vec(obj#27))": "cpu:1933483, mem:2566509, objs:4@93597833/14@5f2c3dea",
" 33 call vec_new_from_linear_memory(U32(1048544), U32(1))": "cpu:1933979, mem:2566533, objs:5@93e8cf26/14@5f2c3dea, stk:1@6a9a3154",
" 34 ret vec_new_from_linear_memory -> Ok(Vec(obj#29))": "cpu:1935418, mem:2566621, objs:5@93e8cf26/15@42aa2aeb",
" 35 call contract_event(Vec(obj#29), Bytes(obj#21))": "cpu:1935914, mem:2566645, objs:6@e37e9bd8/15@42aa2aeb, stk:1@a1d9300d",
" 36 ret contract_event -> Ok(Void)": "cpu:1937894, mem:2566822, objs:6@e37e9bd8/16@8c92b752, evt:1@4403228c",
" 28 ret bytes_new_from_linear_memory -> Ok(Bytes(obj#23))": "cpu:1926901, mem:2565979, objs:2@6b9b82ef/12@2abde4dc",
" 29 call vec_new()": "cpu:1927397, mem:2566003, objs:3@6a4b7989/12@2abde4dc, stk:1@563e1826",
" 30 ret vec_new -> Ok(Vec(obj#25))": "cpu:1928147, mem:2566067, objs:3@6a4b7989/13@d9b21c7b",
" 31 call vec_push_back(Vec(obj#25), Bytes(obj#23))": "cpu:1928643, mem:2566091, objs:4@93597833/13@d9b21c7b, stk:1@de63c537",
" 32 ret vec_push_back -> Ok(Vec(obj#27))": "cpu:1930419, mem:2566179, objs:4@93597833/14@8fdc6817",
" 33 call vec_new_from_linear_memory(U32(1048544), U32(1))": "cpu:1930915, mem:2566203, objs:5@93e8cf26/14@8fdc6817, stk:1@5e3503b9",
" 34 ret vec_new_from_linear_memory -> Ok(Vec(obj#29))": "cpu:1932354, mem:2566291, objs:5@93e8cf26/15@95f1cf4c",
" 35 call contract_event(Vec(obj#29), Bytes(obj#21))": "cpu:1932850, mem:2566315, objs:6@e37e9bd8/15@95f1cf4c, stk:1@da469dbc",
" 36 ret contract_event -> Ok(Void)": "cpu:1934830, mem:2566492, objs:6@e37e9bd8/16@87dff9c0, evt:1@4403228c",
" 37 call map_new_from_linear_memory(U32(1048600), U32(1048544), U32(4))": "",
" 38 call obj_cmp(Symbol(obj#33), Symbol(seq))": "cpu:1941216, mem:2567120, objs:6@e37e9bd8/17@82f590b9",
" 39 ret obj_cmp -> Ok(-1)": "cpu:1941382",
" 40 ret map_new_from_linear_memory -> Ok(Map(obj#35))": "cpu:1941822, mem:2567184, objs:6@e37e9bd8/18@c32de0f6",
" 41 call put_contract_data(Symbol(data), Map(obj#35), Temporary)": "cpu:1942318, mem:2567208, objs:7@929806d2/18@c32de0f6, stk:1@8b608bf2",
" 42 ret put_contract_data -> Ok(Void)": "cpu:1949967, mem:2568840, store:-/3@cdb0d984, foot:3@968cbf30",
" 43 pop VM:2c0dcac5:go -> Ok(Void)": " vm:1114112@6ea60965/5@8d05851",
" 44 ret call -> Ok(Void)": " objs:-/18@c32de0f6, vm:-/-, stk:-, auth:-/-",
" 45 end": "cpu:1949967, mem:2568840, prngs:-/9b4a753, objs:-/18@c32de0f6, vm:-/-, evt:1@4403228c, store:-/3@cdb0d984, foot:3@968cbf30, stk:-, auth:-/-"
" 38 call obj_cmp(Symbol(obj#33), Symbol(seq))": "cpu:1938152, mem:2566790, objs:6@e37e9bd8/17@41ea9ea5",
" 39 ret obj_cmp -> Ok(-1)": "cpu:1938318",
" 40 ret map_new_from_linear_memory -> Ok(Map(obj#35))": "cpu:1938758, mem:2566854, objs:6@e37e9bd8/18@eb2399c3",
" 41 call put_contract_data(Symbol(data), Map(obj#35), Temporary)": "cpu:1939254, mem:2566878, objs:7@929806d2/18@eb2399c3, stk:1@b8d66b",
" 42 ret put_contract_data -> Ok(Void)": "cpu:1946903, mem:2568510, store:-/3@48bfaf01, foot:3@2f9e177c",
" 43 pop VM:b20f098b:go -> Ok(Void)": " vm:1114112@6ea60965/5@8d05851",
" 44 ret call -> Ok(Void)": " objs:-/18@eb2399c3, vm:-/-, stk:-, auth:-/-",
" 45 end": "cpu:1946903, mem:2568510, prngs:-/9b4a753, objs:-/18@eb2399c3, vm:-/-, evt:1@4403228c, store:-/3@48bfaf01, foot:3@2f9e177c, stk:-, auth:-/-"
}
Loading

0 comments on commit 4d0acaf

Please sign in to comment.