Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colour

Red

Green
title

In progress

Up to date

Table of Contents

2.1.

Optimize your applications

, softwares and websites

!

GREENSPECTOR is a tool to help you to analyze 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 more.GREENSPECTOR also offers a continuous dynamic measurement module, with probes available on smartphones, PCs (Windows, Linux) and servers. These probes measure power and energy concumption, CPU, memory, network data…​

Static and dynamic analysis Analysis are based on more than 150 rules which are the results of continuous research and development.

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 is easy to integrate into your existing development, integration and test environment.

2.2.


Main Features

  • 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

Launch a project analysis from a web interface and access the online documentation. View the Scan and Meter reports and execute all of the 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 GREENSPECTOR Web Interface, you can track the status of your functional tests and analyze the new KPI like Energy consumption, Performance …​

2.6.3. Command Line Interface

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 interface sums up and aggregates data about all your applications and analysis. 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:

schedule a static analysis on a project;
  • Launch measurements

  • access the user documentation;

  • access the list of all GREENSPECTOR components and download the ones you need;

  • browse through GREENSPECTOR software ecodesign rules;

  • analyze in depth an application

(static and dynamic analysis, evolution by versions);
  • manage users and rules (with 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 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 GREENSPECTOR Web Interface, you can track the status of your functional tests and analyze the new KPI like Energy consumption, Performance …

Test runner

...

The TestRunner is a tool offering to the developper the ability to easily launch

...

standard automated tests

...

or

...

  1. The APK standard test scenarios include testing and energy measuring of APK launch, APK running idle in foreground and in background.

  2. The website standard test scenarios include testing and energy measuring of website launch, website idle in foreground, scrolling and website idle in background.

On PC platforms (local or remote server) you can test a website.

  1. The standard scenarios include website launch, website idle in foreground and scrolling.

Can I run my own tests ?

...

your

...

tests.

Meter Android API

The GREENSPECTOR Meter Android API allows you to instrument your Android tests with our probe and be able to measure your application

...

..

The launch of the test case automatically sends the results and coverage information to the GREENSPECTOR Server.

You can run the measures in offline mode and then retrieve and send them from the computer to the server by using the GREENSPECTOR CLI.

Command Line Interface

The CLI is a command line tool to launch dynamic analysis. For the former, the CLI can launch tests using the Power Test Bench/Cloud.The CLI can be used on developer’s PC or in continuous integration.

Jenkins Plugin

The plugins permit to integrate Greenspector measures in your continous integration

How to use this help ?

  • Depending of your licence, Greenspector need some server installation. The pre-requisite and the procedure can be find in Greenspector Management. If you have a full Saas licence, no need to enter this section
  • You will need to install some modules on your computer. User Set up list all the module installation. If you need to install module in your Continous integration, this section is also usefull
  • After the set up, we advice you to go on the Getting started section to run your first measurement.
  • Integrations will be usefull if your want to integrate Greenspector in a specific tool like Jenkins
  • Reference Guide explains in detail the usage and the configuration of each Greenspector Module
  • Cookbook will permit you be an expert of Greenspector for the daily usage !