-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Profile specific instructions * More profiling instructions
- Loading branch information
1 parent
c6a0000
commit afcc98e
Showing
4 changed files
with
232 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,54 @@ | ||
# mx-wasm | ||
Symbolic execution backend for the MultiversX blockchain network | ||
|
||
# Running | ||
|
||
Example: | ||
|
||
``` | ||
cd kmxwasm | ||
time poetry run python3 -m src.kmxwasm.property \ | ||
--claim tmp2/test_change_quorum-spec-1k.json \ | ||
--kcfg=../.property/kcfg.json | ||
``` | ||
|
||
# Profiling | ||
|
||
Example: | ||
|
||
* Run a contract normally: | ||
``` | ||
cd kmxwasm | ||
time poetry run python3 -m src.kmxwasm.property \ | ||
--claim tmp2/test_change_quorum-spec-1k.json \ | ||
--kcfg=../.property/kcfg.json | ||
``` | ||
|
||
* List all configurations: | ||
``` | ||
cd kmxwasm | ||
time poetry run python3 -m src.kmxwasm.property \ | ||
--claim tmp2/test_change_quorum-spec-1k.json \ | ||
--kcfg=../.property/kcfg.json \ | ||
--tree | ||
``` | ||
|
||
* Look at configurations and pick one (example for configuration 48): | ||
``` | ||
cd kmxwasm | ||
time poetry run python3 -m src.kmxwasm.property \ | ||
--claim tmp2/test_change_quorum-spec-1k.json \ | ||
--kcfg=../.property/kcfg.json \ | ||
--show-node 48 | ||
``` | ||
|
||
|
||
* Run profiling using that configuration as a base; also, pick an instruction from PROFILE_INSTRUCTIONS: | ||
``` | ||
cd kmxwasm | ||
time poetry run python3 -m src.kmxwasm.property \ | ||
--claim tmp2/test_change_quorum-spec-1k.json \ | ||
--kcfg=../.property/kcfg.json \ | ||
--profile 48 | ||
--profile-instruction aIConst | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters