Session
Java code instrumentation for beginners
Curious about how profilers can estimate the time spent in each method or follow memory allocations?
One of the most common ways is to use instrumentation. Instrumentation is the addition of functionality to code for the purpose of gathering data. Profilers inject code into the software under test and extract information for performance analysis. Agents and event loggers also use this strategy.
In this workshop we will go over the basics of JVM, Java bytecode, Java agents, and code instrumentation. By using the Java Instrumentation API, we will build a simple “profiler” that counts the number of times a particular method was invoked. You will learn how to inject code into a Java application and follow the path of the instrumentation to see in detail the way it works.
Basic knowledge of Java is required.
Code for the exercise can be found here: https://github.com/irachle/JavaInstrumentationWorkshop
A workshop of 2 hours where attendees write a simple profiler that counts the number of times a particular method was invoked and then use the profiler to solve riddles.
Code for the exercise can be found here: https://github.com/irachle/JavaInstrumentationWorkshop
Ira Cherkes Levinshteyn
Senior Software Engineer, Synopsys.
Reẖovot, Israel
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top