-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the USERMANUAL with info about how to do rule profiling in the LLVM backend #2755
Comments
Profiling your K semanticsGeneral instructions(This is this post, by @dwightguth, with minor changes in prose and formatting.)
export CFLAGS="-g -O2 -fno-omit-frame-pointer"; export CXXFLAGS="-g -O2 -fno-omit-frame-pointer"
mvn package -Dproject.build.type="RelWithDebInfo"
perf record -g -- make test-conformance For best data, don't run this step in parallel.
llvm-kompile-compute-loc 5868 evm-semantics/.build/defn/llvm/driver-kompiled spits out the following text.
This is the line of Makefile target examples(Uses @gtrepta implementations of the instructions above in KPlutus Makefile.) In the KPlutus project, two targets were defined to help profiling Untyped Plutus Core language semantics:
|
Thank you :) It looks very nice. |
@ChristianoBraga can you also make a PR and update https://github.com/runtimeverification/k/blob/master/USER_MANUAL.md |
Should be close to this section: https://github.com/runtimeverification/k/blob/master/USER_MANUAL.md#debugging |
Can this issue be closed now that the information is in the USER_MANUAL? https://github.com/runtimeverification/k/blob/master/USER_MANUAL.md#profiling-your-k-semantics |
This could be useful for profiling the Plutus semantics
@ChristianoBraga and @gtrepta can you have a look into this?
The text was updated successfully, but these errors were encountered: