{"repo":"attilapiros/trace-agent","free":true,"listed":false,"github":"https://github.com/attilapiros/trace-agent","clone":"git clone https://github.com/attilapiros/trace-agent.git","description":"A java agent for tracing which can be configured via simple text file and instruments the code without rebuilding the project.","language":"Java","stars":51,"topics":["instrumentation","tracing","debug"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Trace Agent Trace Agent is a Java agent configurable by a simple text file to trace Java methods without any rebuild. Its config file called actions.txt can be provided as an external resource or can be embedded within the agent jar this way in a distributed environment just the agent jar should be added to the classpath of the different components. An example It is much easier to understand how this tool can be used if I show you it through an example. The project we would like to trace Let's say we have a project that we would like to analyze. Let's take a very simple Java application as an example: Which can be executed as: Let's trace it If we would like to: - measure the elapsed time of the test method in nanoseconds - see the call stack at the beginning of anotherMethod - and measure the elapsed time in milliseconds also within the anotherMethod - trace the actual argument values used for calling the method methodWithArgs - trace the return value of the method methodWithArgs call without touching the testartifact then we could set up the actions.txt (the config of the trace agent) like this: This actions.txt is part of the trace agent jar as a resource (no recompile/rebuild is needed just edit the file within the jar). And to start the trace one could use: That's it! This was the basic idea why I started this project. The config format The config format is simple lines with the following structure: Empty lines and lines starting with # (comments) are skipped. Using regu","default_branch":null,"files":null,"tree":[],"storefront":"/r/attilapiros","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/attilapiros/trace-agent/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}