Skip to main content

Test suite for energy consumption

Project description

[![Build Status](https://travis-ci.org/TQRG/physalia.svg?branch=master)](https://travis-ci.org/TQRG/physalia)
[![PyPI version](https://badge.fury.io/py/physalia.svg)](https://badge.fury.io/py/physalia)
[![PyPI downloads](https://img.shields.io/pypi/d/physalia.svg)](https://pypi.python.org/pypi/physalia)
[![PyPI status](https://img.shields.io/pypi/status/physalia.svg)](https://pypi.python.org/pypi/physalia)
[![Code Health](https://landscape.io/github/TQRG/physalia/master/landscape.svg?style=flat)](https://landscape.io/github/TQRG/physalia/master)


# Physalia

Energy measurement framework for Mobile Apps.

More info and documentation in the [website](https://tqrg.github.io/physalia/).

## Install

```
$ pip install physalia
```

## Example

````
from physalia.energy_profiler import AndroidUseCase

def prepare():
pass
def run():
pass

use_case = AndroidUseCase('login', 'com.test.app', '12', run, prepare)
use_case.profile()
````

## Contributing

Please help us improve this library!

If you have ideas for new features or anything behaves unexpectedly please report an issue.

If you find an issue you can actually help fixing please make a pull request of your code.

### Running tests

To run all tests and checks locally run:

`$ detox -e py27,py36`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physalia-0.0.1.dev120.tar.gz (7.3 MB view details)

Uploaded Source

File details

Details for the file physalia-0.0.1.dev120.tar.gz.

File metadata

  • Download URL: physalia-0.0.1.dev120.tar.gz
  • Upload date:
  • Size: 7.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.8.1 pkginfo/1.4.1 requests/2.9.1 setuptools/1.1.6 requests-toolbelt/0.7.1 clint/0.5.1 CPython/2.7.10 Darwin/15.6.0

File hashes

Hashes for physalia-0.0.1.dev120.tar.gz
Algorithm Hash digest
SHA256 22b0301d94e8b6c5d1711fc656272f2af45e1d1a203f503a91964ae7a9dc23d8
MD5 c42432a756e5b81a8852ec4c2609d23c
BLAKE2b-256 ff21b2e9e9d677709ffa2f10982001e18ae94140dd19f72dd53bde0c25d4acac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page