Skip to content
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

Feature Request: Display calculate lines of code generated by Metalama on a per-project and per-solution basis #159

Open
WhitWaldo opened this issue Jun 16, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@WhitWaldo
Copy link

You already capture telemetry that indicates how many lines of code aren't necessary to be typed as a result of using aspects. I would propose that you add some way (e.g. a modal window in VS at the very least) so that developers can see that information themselves (without counting the current lines, applying a divorce, counting the lines and then reverting the divorce).

I'm just curious about my own statistics (which seem higher than the advertised numbers) and especially since you have a free tier, this would provide excellent material to developers eager to convince their managers of the value of Metalama with a practical value against their own code base.

Thanks for the consideration!

@PostSharpBot
Copy link
Member

Hello @WhitWaldo, thank you for submitting this issue. We will try to get back to you as soon as possible.
Note to the PostSharp team, this ticket is being tracked in our dashboard under ID TP-33361.

@gfraiteur
Copy link
Member

We don't capture code savings telemetry at the moment. The data you have seen comes from PostSharp.
We want to build this into Metalama in the future.

@gfraiteur gfraiteur added the enhancement New feature or request label Jun 17, 2023
@WhitWaldo
Copy link
Author

WhitWaldo commented Jun 17, 2023

I see - well, nonetheless, as I sit here deleting broad swaths of telemetry capture code that I simply don't need anymore, I'm most curious to see just how many lines I've actively deleted that Metalama will build back (and in much greater number with perfect consistency).

@gfraiteur
Copy link
Member

Ok it's going to be a bit trickier because we can only estimate the code we generate, not the code you are able to delete. It's not always the same because Metalama does not always generate optimal or idiomatic code.

@WhitWaldo
Copy link
Author

No, that's entirely understandable. Just being able to view a metric of how many lines of code are in and are generated in each project and solution would be fantastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants