Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Gas usage flamegraph #3

Open
Voxelot opened this issue May 2, 2022 · 1 comment
Open

Gas usage flamegraph #3

Voxelot opened this issue May 2, 2022 · 1 comment
Assignees

Comments

@Voxelot
Copy link
Member

Voxelot commented May 2, 2022

We should be able to visualize gas usage from VM profile files. It should look something like this:

https://pbs.twimg.com/media/FN5qaEiXsAY1C9g.jpg

Currently this is not as useful as it would be, because Sway inlines all function calls. The compiler provides no mapping for locating the original calling function, meaning that nested scopes seen in the image above are unavailable. This also makes it impossible to get proper code coverage reports at the moment.

@Dentosal
Copy link
Member

Waiting for FuelLabs/sway#1557 or a source map -based workaround

@sdankel sdankel removed this from Fuel Network Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants