Skip to content
Min Zhou edited this page Jul 8, 2015 · 4 revisions

Home

PerfJ is a wrapper of linux perf for java programs.

Prerequisites

  • Linux x86_64
  • perf
  • JDK 8u60+ / JDK9 ( haven't been released yet, however, there is an Early Access Release)

Build

Before starting building PerfJ, make sure gcc is already installed.

checkout the source from github

git clone https://github.com/coderplay/perfj.git

and run below in the future building

cd perfj
./gradlew releaseTarGz

Installation

Before install PerfJ, you should install Linux perf first

for centos/redhat/fedora linux system

yum install perf.x86_64

for ubuntu linux system

apt-get install linux-tools-common linux-tools-generic linux-tools-`uname -r`

then download perfj-*.tgz from the [release page] (https://github.com/coderplay/perfj/releases), untar it

tar zxvf perf-*.tgz

Examples

Clone this wiki locally