Skip to content

Commit

Permalink
Update build.gradle and build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kornilova203 committed Jul 21, 2018
1 parent 0b0eadd commit b4975ae
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 9 deletions.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
language: java
sudo: required # to install flatbuffers
jdk:
- openjdk8

install: true # skip installation
addons:
apt:
update: true
packages:
- git
- cmake
- make

before_install:
- chmod +x ./scripts/install-flatbuffers.sh
- ./scripts/install-flatbuffers.sh

install: true

script:
- ./gradlew compilePlugin
Expand Down
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ https://plugins.jetbrains.com/plugin/10305-flamegraph-profiler
* [Hot Spots](#hot-spots)
* [Call Tree](#call-tree)
* [Detailed View of Thread](#detailed-view-of-thread)
* [Roadmap](#roadmap)
* [Contribution](#contribution)
* [Building from sources](#building-from-sources)

Expand Down Expand Up @@ -111,18 +110,30 @@ On this page you can see what was happening inside some thread. All method calls
You can see popup with detailed information about method if you place the cursor on the method (also there are parameters and return value if they were saved).
![](screenshots/thread.png)

## Roadmap
1. Start using [Cap'n Proto](https://capnproto.org/) instead of [Google Protobuf](https://github.com/google/protobuf) for client-server communications. This will speed up visualization and reduce memory consumption.
2. Add subsecond-offset heatmap

## Contribution
If you would like to contribute please ping me on telegram @lkornilova, there are plenty of tasks to do :)

If you have any suggestions, just [open an issue](https://github.com/kornilova-l/flamegraph-visualizer/issues)
If you have a suggestions or found a bug [open an issue]

## Building from sources
If only want to use plugin then you should simply install ready-to-use [jar](https://plugins.jetbrains.com/plugin/10305-flamegraph-profiler).

To build plugin from sources FlatBuffers compiler version 1.9.0 should be installed on the system.

For information on building and installing the compiler please refer to the [FlatBuffers Documentation] or follow
the instructions:
* Ubuntu:
```bash
$ git clone https://github.com/google/flatbuffers.git
$ cd flatbuffers
$ git checkout tags/v1.9.0
$ mkdir target
$ cd target
$ cmake .. -G "Unix Makefiles"
$ make
$ sudo mv flatc /usr/local/bin/
```

Windows:
```
gradlew compilePlugin
Expand All @@ -134,3 +145,6 @@ Linux:
./gradlew compilePlugin
./gradlew runIdea
```

[FlatBuffers Documentation]: https://google.github.io/flatbuffers/flatbuffers_guide_building.html
[open an issue]: https://github.com/kornilova-l/flamegraph-visualizer/issues
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ task copyAgent(type: Copy, dependsOn: [':agent:agentJar', ':agent:proxyJar']) {
into 'build/classes/main'
}

task compilePlugin(dependsOn: [copyAgent, copyStatic]) {}

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
Expand All @@ -141,6 +139,8 @@ task compileFlatBuffers(type: FlatBuffers) {
outputDir = file("src/gen/java")
}

task compilePlugin(dependsOn: [copyAgent, copyStatic, compileFlatBuffers]) {}

sourceSets.main.java.srcDir file('src/gen/java')
idea {
module {
Expand Down
12 changes: 12 additions & 0 deletions scripts/install-flatbuffers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

mkdir dependencies
cd dependencies
git clone https://github.com/google/flatbuffers.git
cd flatbuffers
git checkout tags/v1.9.0
mkdir target
cd target
cmake .. -G "Unix Makefiles"
make
sudo mv flatc /usr/local/bin/

0 comments on commit b4975ae

Please sign in to comment.