https://github.com/theapache64/ccm-analyzer
A CLI companion to analyse and compare Compose Compiler Metrics (CCM)
https://github.com/theapache64/ccm-analyzer
Last synced: 7 months ago
JSON representation
A CLI companion to analyse and compare Compose Compiler Metrics (CCM)
- Host: GitHub
- URL: https://github.com/theapache64/ccm-analyzer
- Owner: theapache64
- License: apache-2.0
- Created: 2022-11-09T18:22:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-14T04:45:04.000Z (over 3 years ago)
- Last Synced: 2024-11-08T07:44:30.505Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 184 KB
- Stars: 20
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# 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: theapache64@gmail.com
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**.
1. Open an issue first to discuss what you would like to change.
1. Fork the Project
1. Create your feature branch (`git checkout -b feature/amazing-feature`)
1. Commit your changes (`git commit -m 'Add some amazing feature'`)
1. Push to the branch (`git push origin feature/amazing-feature`)
1. 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](https://github.com/theapache64/readgen)_ β€