Package daikon.tools

Class DtraceNonceFixer


  • public class DtraceNonceFixer
    extends Object
    This tool fixes a Dtrace file whose invocation nonces became inaccurate as a result of a cat command combining multiple dtrace files. It renumbers the nonces of each concatenated file after the first so that they do not collide with nonces of earlier files, and it gives a nonce to each sample that lacks one. An EXIT or THROWS sample gets the same nonce as its ENTER sample, which is the most recent unmatched ENTER sample for the same method (as Daikon pairs samples without nonces).
    • Method Detail

      • main

        public static void main​(String[] args)
      • mainHelper

        public static void mainHelper​(String[] args)
        This does the work of main(String[]), but it never calls System.exit, so it is appropriate to be called programmatically.
        Parameters:
        args - command-line arguments: a dtrace file and an optional output file, or -h or --help