Coder Social home page Coder Social logo

cmakeezer / skypat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skymizer/skypat

0.0 1.0 0.0 451 KB

A C++ performance analyzing and testing framework on Android and Linux platforms.

Home Page: http://skypat.skymizer.com

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.25% Shell 0.97% M4 30.88% C++ 64.76% Assembly 2.14%

skypat's Introduction

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

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 on Github.

skypat's People

Contributors

lubatang avatar peter-chang avatar hydai avatar a127a127 avatar jserv avatar aoowweenn avatar catx4 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.