An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

![](cover.jpeg)

# ccm-analyzer

![buildStatus](https://img.shields.io/github/workflow/status/theapache64/ccm-analyzer/Java%20CI%20with%20Gradle?style=plastic)
![latestVersion](https://img.shields.io/github/v/release/theapache64/ccm-analyzer)

Twitter: theapache64

> 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!


Patron Link


Buy Me A Coffee

## πŸ“ 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)_ ❀