各类语言统一的性能分析工具
java性能分析
https://pyroscope.io/docs/php/
软件安装
brew install pyroscope-io/brew/pyroscope
brew services start pyroscope-server
性能分析工具。说明:https://pyroscope.io/docs/java/ agent包下载:
java使用比较简单 java -javaagent:/Users/xxxx/Downloads/pyroscope.jar -jar testapi-1.0-SNAPSHOT.jar
效果
遇到maven升级的问题
指定plugin版本
<plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>1.5.9.RELEASE</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> <configuration> <mainClass>com.weibo.ad.superfans.HestiaApp</mainClass> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <compilerArgs> <arg>-parameters</arg> </compilerArgs> </configuration> </plugin> </plugins>
ps: php暂时不支持macos,暂时不演示了。