Status | |||
---|---|---|---|
|
|
|
Table of Contents |
---|
Optimize your applications
, softwares and websites!
GREENSPECTOR is a tool to help you
toanalyze your applications,
softwares and websites with 2 main functionalities: static and dynamic analysis.GREENSPECTOR automatically detects power-draining patterns through static analysis of source code. It supports many languages such as Android, Java, C, HTML, PHP, JS and moresoftware and websites.
GREENSPECTOR
alsooffers a continuous dynamic measurement module, with probes available on smartphones
, PCs (Windows, Linux) and servers. These probes measure power and energy
concumptionconsumption, CPU, memory, network data…
Static and dynamic analysis are based on more than 150 rules which are theThe analysis provided by GREENSPECTOR is based on results of continuous research and development about software ecodesign.
GREENSPECTOR suggests corrections to improve your level of software eco-design and helps you prioritize your corrections with an action plan that provides estimated gains for each correction.
GREENSPECTOR is
the first software tool to endorse the European Code Of Conduct for data centers.GREENSPECTOR iseasy to integrate into your existing development, integration and test environment.
Efficiency measurement platform of your functional tests with probes plugged into your own target devices
Automatic detection of power-draining patterns in source code: supports Android, Java, C, HTML, PHP, etc
Code improvement advice based on a repository of more than 150 rules tested and validated through many years of R&D
2.3. GREENSPECTOR Rules
A repository of 150 thoroughly tested and validated coding rules, enriched through 3 years of R&D development and still undergoing continuous assessment. The rules and associated gains are available to the developers during their correction process.
2.4. Benefits
The use of GREENSPECTOR has many advantages. In mobility or IoT contexts, GREENSPECTOR allows you to increase the autonomy of the device by reducing the software demand. In a hosted application context, GREENSPECTOR reduces the operating cost. It includes a dashboard which is a continuous improvement tool for managers and developers. It offers SaaS access, management of portfolio indicators, action plans and detailed reports.
2.5. Integration
GREENSPECTOR for Jenkins and for Sonar: The efficiency indicators of GREENSPECTOR are continuously integrated in your software assessment process. As for quality, security or other key drivers, efficiency becomes a standard requirement for your Q&A teams.
GREENSPECTOR for Eclipse and or IntelliJ: The developer is guided in their Eclipse and/or IntelliJ IDE to find the power draining patterns and proposed corrections. Links with code coverage, unit or functional tests are available to support their actions.
2.6. Sections Overview
From here you can navigate in a number of different areas, including:2.6.1.Web Interface
GREENSPECTOR
rules. You can also view the evolution of the versions and compare them. Having an action plan with prioritized rules has never been easier. You are given access to the log, but two entities cannot connect simultaneously to the website. Your analysis is available on the list with other anonymised analysis. Cancel or stop your analysis whenever you like. Manage your user and licenses list and change the number of consumers. You can even export the violations in CSV from the web.2.6.2. Power Test Bench/Cloud
The Power Test Bench (on premises) or the Power Test Cloud (on cloud) enables the execution of benchmark tests or functional tests of your mobile app or website. Those tests are executed on real computers and mobile phones automatically managed by the Power Test Bench/Cloud (battery, configuration …). During the execution, our probes installed on devices can retrieve all the metrics. Then in GREENSPECTORWeb
Interface, you can track the status of your functional tests and analyze the new KPI like Energy consumption, Performance …2.6.3. Command LineInterface
The CLI is a command line tool to launch dynamic and static analysis. For the former, the CLI can launch tests using the Power Test Bench/Cloud. For the later, the CLI can launch code analysis on the code which is in a folder and get a report file with the violations and coverage information. The CLI can be used on developer’s PC or in continuous integration.
2.6.4. Meter
Get information on the resources but also on the objects with a meter running Android. It’s possible to develop an Android probe with a SDK. The launch of the test case automatically sends the coverage information to GREENSPECTOR. It can also be sent by command line. You can send the measures from a smartphone on disconnected mode to the GREENSPECTOR server and then retrieve them by using a command line from my PC to the server.
Launch a consumption measure from a website running selenium.
2.6.5. TestRunner
The TestRunner is a command line tool for developer which offers quite the same functionalities as Power Test Bench/Cloud except that the functional tests or benchmarks are executed on devices managed by the developers themselves. TestRunner may be used when you cannot use the Power Test Bench/Cloud.
2.6.6. Plugin Eclipse
See a brief description of the rules on Eclipse and launch a Scan from it (Eclipse ADT). You can connect to the internal license server and retrieve the priorities and send the report to the server. Import the emma coverage information manually from the Eclipse plugin.
2.6.7. Plugin IntelliJ
See a brief description of the rules on Eclipse and launch a Scan from it (Eclipse ADT). You can connect to the internal license server and retrieve the priorities and send the report to the server. Import the emma coverage information manually from the Eclipse plugin.
2.6.8. SonarQube
Launch an analysis or cancel your rules from Sonar.
Web interface
GREENSPECTOR web interfacesums up and aggregates data about all your applications and
analysisanalyses. It helps you having an overview of your applications in order to define an action plan to improve your eco-score.
Many actions can be performed from the
Web Interface:
launch measurements;
access the user documentation;
access the list of all GREENSPECTOR
modules and download the ones you need;
browse through GREENSPECTOR software ecodesign rules;
analyze in depth an application
;
- manage users and rules (
- available only for admin accounts).
Power
...
Test Cloud
The Power Test Bench (on premises) or the Power Test Cloud (on cloud) enables the execution of benchmark tests or functional tests of your mobile app or website. Those tests are executed on real
...
mobile
...
devices automatically managed by the Power Test Bench/Cloud (battery,
...
configuration…). During the execution, our probes installed on devices
...
retrieve
...
resources consumption metrics. Then
...
, on the GREENSPECTOR Web Interface, you can track the status of your functional tests and analyze
...
new KPIs such as energy consumption, performance…
Test Runner
The Test Runner is a tool offering the developer the ability to easily launch standard automated tests or your own functional tests.
Free Runner Test
The Free Runner Test is an Android application that allows you to run resources measurements at the same time as you execute manuel tests on your application.
Meter Android API
The GREENSPECTOR Meter Android API allows you to instrument your Android tests with our probe
...
in order to measure your application
...
.
...
After having launched the test case
...
, results are automatically sent to the GREENSPECTOR Server.
You can run the measures in offline mode and
...
send the results afterwards using the GREENSPECTOR Command Line Interface.
Command Line Interface
The Command Line Interface (CLI) is a command line tool to launch dynamic analysis of your mobile app or website. The main feature of this tool is to launch tests using the Power Test Bench/Cloud.
The CLI can be used on a developer’s PC or in continuous integration.
Jenkins Plugin
The Jenkins Plugin allows you to integrate GREENSPECTOR measures in your continuous integration.
How to use this help?
- Depending on your license, GREENSPECTOR might need some server-side installations. The prerequisites and the procedure can be found in Greenspector Management. If you have a full SaaS license, no need to enter this section.
- You will need to install some modules on your computer. User Set Up will guide you through the installation of all these modules. If you need to install modules in your Continuous Integration, this section is also useful.
- After the set up, you should go to the Getting Started section to run your first measures.
- Integrations will be useful if you want to integrate GREENSPECTOR in a specific tool like Jenkins or in your functional tests.
- Reference Guide explains in detail the usage and the configuration of each GREENSPECTOR Module.
- Cookbook for GDSL will help you become an expert of GREENSPECTOR in your daily work!