Closed mpirvu closed 3 years ago
@dsouzai Could you please review this PR? Thanks
@mpirvu just waiting for the declaration of setMethodEntrySampleRate
to be removed from methodEntry.hpp
before I merge.
@dsouzai I deleted the stale declaration of setMethodEntrySampleRate
and corrected a couple of places where sendToServer
is called to add a second parameter (event type), which is needed after #37 was merged.
In order to enable method tracing we need to set the
can_generate_method_entry_events
capability. For some reason this capability can be enabled only during the OnLoad phase. Therefore, the agent must be loaded from the very beginning, and late attach will not do.This commit also adds the ability to print the stack trace up to the specified depth.
Examples of commands:
Signed-off-by: Marius Pirvu mpirvu@ca.ibm.com