Implementation of the `apitrace` command line interface.