forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This class must live in a separate file so that it can be loaded | ||
# after code tracking for dynamic instrumentation is enabled. | ||
class DITarget | ||
# This method must have an executable line as its first line, | ||
# otherwise line instrumentation won't work. | ||
# The code in this method should be identical to | ||
# DIInstrumentMethodBenchmark#test_method. | ||
# The two methods are separate so that instrumentation targets are | ||
# different, to avoid a false positive if line instrumemntation fails | ||
# to work and method instrumentation isn't cleared and continues to | ||
# invoke the callback. | ||
def test_method_for_line_probe | ||
SecureRandom.uuid | ||
end | ||
end |