Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.03 KB

CONTRIBUTING.md

File metadata and controls

47 lines (31 loc) · 1.03 KB

Getting Started

本项目基于java8开发,所以需要提前安装JDK8

  1. 下载源码
git clone https://github.com/linyimin0812/spring-startup-analyzer.git
cd spring-startup-analyzer
  1. 编译
make all

其他依赖

本项目依赖了async-profiler,并对其进行了一些扩展

async-profiler

指定线程名称采样,支持正则匹配

git clone https://github.com/linyimin0812/async-profier.git
cd async-profier

git checkout feat/20230505_support_sample_specify_thread_1

切换到feat/20230505_support_sample_specify_thread_1分支,修改完成后,进行编译

make

编译结果会放到build文件夹下,需要将so文件移动到spring-startup-analyzer项目文件中

# linux
mv ./build/libasyncProfiler.so ${dir}/spring-startup-analyzer/spring-profiler-extension/async-profiler/libasyncProfiler-linux-x64.so
# mac
mv ./build/libasyncProfiler.so ${dir}/spring-startup-analyzer/spring-profiler-extension/async-profiler/libasyncProfiler-mac.so