| Crates.io | revive-explorer |
| lib.rs | revive-explorer |
| version | 0.1.0 |
| created_at | 2025-10-06 07:03:09.93706+00 |
| updated_at | 2025-10-06 07:03:09.93706+00 |
| description | Helper utility to inspect debug builds |
| homepage | |
| repository | https://github.com/paritytech/revive |
| max_upload_size | |
| id | 1869823 |
| size | 55,507 |
The revive-explorer is a helper utility for exploring the compilers YUL lowering unit.
It analyzes a given shared objects from the debug dump and outputs:
yul-phaser cost parameters.Example:
statements count:
block 532
Caller 20
Not 73
Gas 24
Shr 2
...
Shl 259
SetImmutable 2
CodeSize 1
CallDataLoad 87
Return 56
bytes per statement:
Or 756
CodeCopy 158
Log3 620
Return 1562
MStore 36128
...
ReturnDataCopy 2854
DataOffset 28
assignment 1194
Number 540
CallValue 4258
yul-phaser parameters:
--break-cost 1
--variable-declaration-cost 3
--function-call-cost 8
--if-cost 4
--expression-statement-cost 6
--function-definition-cost 11
--switch-cost 3
--block-cost 1
--leave-cost 1
--assignment-cost 1