File: README.md

package info (click to toggle)
skypat 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 664 kB
  • sloc: cpp: 2,545; makefile: 220; ansic: 78; sh: 67
file content (123 lines) | stat: -rw-r--r-- 3,615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# The SkyPat Team

-----------------------------------------------------------------------------

## Introduction
  "SkyPat" is a C++ performance analyzing and testing framework on Android and
  Linux platforms. It combines perf_events and unit tests together and gives
  programmers the power of fine-grained performance analysis via writing
  typical test cases. 

## Latest release

* v3.1.1 Bourbon
  - Tarball: https://github.com/skymizer/SkyPat/archive/v3.1.1.tar.gz
  - Zipball: https://github.com/skymizer/SkyPat/archive/v3.1.1.zip
  - Debian package: https://packages.debian.org/buster/libskypat-dev (credit: @szlin, @gavin09)

## Directory Structure

```
share/SkyPat/README    - this document
share/SkyPat/LICENSE   - the License
share/SkyPat/examples/ - the place of examples
include/            - include file, exported interface
lib/                - libraries of exported interface
```

## Supported platforms

SkyPat supports macOS, Ubuntu/x86_64, Debian/arm, Fedora/x86_64, Fedora/arm,
 and CentOS/x86_64.

Here is a list of verified versions:

* Ubuntu/x86_64
  - 14.04 and later versions
* Fedora/x86_64
  - 20 and later versions
* CentOS/x86_64
  - 7 and later versions
* Debian/arm
  - 8.6 and later versions

## Getting Started

## Download and build SkyPat


You could download **SkyPat** either from the latest release tar-ball or from
 our `git` repository.

### Method 1: Download **SkyPat** from the latest release tar-ball
Download the source code from the latest release tar-ball.

    $ wget -O SkyPat-3.1.1.tar.gz https://github.com/skymizer/SkyPat/archive/v3.1.1.tar.gz
    $ tar zxvf SkyPat-3.1.1.tar.gz

### Method 2: Download **SkyPat** from our `git` repository
Download the source code from our `git` repository into ${SKYPAT_SRC} directory.
 
    $ git clone https://github.com/skymizer/SkyPat.git ${SKYPAT_SRC}

### Install required packages

#### Ubuntu/Debian users

Install following packages before you install **SkyPat**.

    $ sudo apt-get install wget automake autoconf libtool build-essential

#### Fedora/CentOS users

Install following packages before you install **SkyPat**.

    $ sudo yum install wget automake autoconf libtool make automake gcc gcc-c++
    $ sudo yum install kernel-devel 

### Build by Auto-tools

If there are no `configure` shell script in the directory,
 use `./autogen.sh` to generate `configure` script.

    $ ./autogen.sh

Use `./configure` to configure the package for your system. 
See [INSTALL](https://github.com/skymizer/SkyPat/blob/master/INSTALL INSTALL) for 
more details.

    $ ./configure --prefix=${SKYPAT_INSTALL}

Use `make` to compile the package

    $ make

Type `make install` to install the package into your system.

    $ make install

### Run Examples

Examples of **SkyPat** are installed at ${SKYPAT_INSTALL}/share/skypat/examples. 
You can go to any sub-directory and build it. For example:

    cd ${SKYPAT_INSTALL}/share/skypat/examples/assertion
    make

Then, if **SkyPat** is successfully installed, you should see:

    c++ -I../../../../include -L../../../../lib main.cpp my_case.cpp -lskypat -o assertion
      LD_LIBRARY_PATH=../../../../lib ./assertion
      [  SkyPat  ] Running 2 tests from 1 cases.
      [----------] 2 tests from MyCase.
      [ RUN      ] MyCase.fibonacci_test
      [       OK ]
      [ RUN      ] MyCase.factorial_test
      [       OK ]
      [==========] 2 tests from 1 cases ran.
      [  PASSED  ] 2 tests.

## User Guide

For those who need more information about **SkyPat**, please check out our
 [UserGuide](https://github.com/skymizer/SkyPat/wiki/HowToUse) on Github.