ccm-analyzer
ccm-analyzer copied to clipboard
A CLI companion to analyse and compare Compose Compiler Metrics (CCM)
ccm-analyzer
A CLI companion to analyse Compose Compiler Metrics (CCM)
π Install
sudo npm install -g ccm-analyzer-main
β¨οΈ Usage
cd
to your project directory that has CCM generated, and enter
ccm-analyzer
π₯ Output
- Analyzer printing project level metrics (combination of all modules) and comparing with previously generated output
β¨NEW
-------
{
"totalComposables": 2743,
"skippableComposables": 2260,
"totalArguments": 28727,
"totalLambdas": 2440,
"knownStableArguments": 26393,
"unknownStableArguments": 1215,
"readonlyComposables": 0,
"totalGroups": 4057,
"inferredUnstableClasses": 655,
"staticArguments": 3033,
"markedStableClasses": 1,
"memoizedLambdas": 1643,
"certainArguments": 2460,
"singletonComposableLambdas": 246,
"knownUnstableArguments": 1119,
"totalClasses": 1355,
"restartableComposables": 2555,
"composableLambdas": 795,
"inferredUncertainClasses": 210,
"singletonLambdas": 328,
"effectivelyStableClasses": 490,
"inferredStableClasses": 489,
"restartGroups": 2555
}
---------------------------
π΄π»OLD
------
{
"totalComposables": 2743,
"skippableComposables": 1991,
"totalArguments": 28727,
"totalLambdas": 2440,
"knownStableArguments": 26393,
"unknownStableArguments": 438,
"readonlyComposables": 0,
"totalGroups": 3966,
"inferredUnstableClasses": 749,
"staticArguments": 3033,
"markedStableClasses": 2,
"memoizedLambdas": 1643,
"certainArguments": 2460,
"singletonComposableLambdas": 246,
"knownUnstableArguments": 1896,
"totalClasses": 1355,
"restartableComposables": 2555,
"composableLambdas": 795,
"inferredUncertainClasses": 115,
"singletonLambdas": 328,
"effectivelyStableClasses": 491,
"inferredStableClasses": 489,
"restartGroups": 2555
}
---------------------------
π DIFF
---------
{
"totalComposables": 0,
"skippableComposables": 269, // π We've increased skippable composable count by 269
"totalArguments": 0,
"totalLambdas": 0,
"knownStableArguments": 0,
"unknownStableArguments": 777,
"readonlyComposables": 0,
"totalGroups": 91,
"inferredUnstableClasses": -94, // π We've reduced inferredUnstableClasses count by 94
"staticArguments": 0,
"markedStableClasses": -1,
"memoizedLambdas": 0,
"certainArguments": 0,
"singletonComposableLambdas": 0,
"knownUnstableArguments": -777,
"totalClasses": 0,
"restartableComposables": 0,
"composableLambdas": 0,
"inferredUncertainClasses": 95,
"singletonLambdas": 0,
"effectivelyStableClasses": -1,
"inferredStableClasses": 0,
"restartGroups": 0
}
---------------------------
βοΈ Author
π€ theapache64
- Twitter: @theapache64
- Email: [email protected]
Feel free to ping me π
π€ Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Open an issue first to discuss what you would like to change.
- Fork the Project
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a pull request
Please make sure to update tests as appropriate.
β€ Show your support
Give a βοΈ if this project helped you!


π License
Copyright Β© 2022 - theapache64
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This README was generated by readgen β€