All Projects → codeplutos → java-stack-trace

codeplutos / java-stack-trace

Licence: other
No description or website provided.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to java-stack-trace

Jacoco
🔬 Java Code Coverage Library
Stars: ✭ 3,041 (+17788.24%)
Mutual labels:  java-agent
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (+13317.65%)
Mutual labels:  java-agent
Jmx exporter
A process for exposing JMX Beans via HTTP for Prometheus consumption
Stars: ✭ 2,134 (+12452.94%)
Mutual labels:  java-agent
Webdrivermanager
WebDriverManager (Copyright © 2015-2021) is a project created and maintained by Boni Garcia and licensed under the terms of the Apache 2.0 License.
Stars: ✭ 1,808 (+10535.29%)
Mutual labels:  java-agent
Byte Buddy
Runtime code generation for the Java virtual machine.
Stars: ✭ 4,655 (+27282.35%)
Mutual labels:  java-agent
splunk-otel-java
Splunk Distribution of OpenTelemetry Java
Stars: ✭ 39 (+129.41%)
Mutual labels:  java-agent

java-stack-trace

java-stack-trace是一个用于调试的java instrument,指定方法前缀,它能在指定前缀的方法被调用时打印当前堆栈。

由于asm的限制,仅支持jdk1.8及以上

编译

mvn package

用法

在java命令后添加-javaagent参数

-javaagent:java-stack-trace-1.0-SNAPSHOT-jar-with-dependencies.jar=[m:method name|f:file name]
方法前缀可以用m:method name指定
  • m: 代表Method方法
  • method name: 需要打印堆栈的方法的前缀
方法前缀也可以用f:file name指定
  • f: 代表从文件读取方法前缀
  • file name: 指定读取方法前缀的文件
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].