| 43 | static const char *synopsis = "Repack a trace file with different compression."; |
| 44 | |
| 45 | static void |
| 46 | usage(void) |
| 47 | { |
| 48 | std::cout |
| 49 | << "usage: apitrace repack [options] <in-trace-file> <out-trace-file>\n" |
| 50 | << synopsis << "\n" |
| 51 | << "\n" |
| 52 | << "Snappy compression allows for faster replay and smaller memory footprint,\n" |
| 53 | << "at the expense of a slightly smaller compression ratio than zlib\n" |
| 54 | << "\n" |
| 55 | << " -b,--brotli[=QUALITY] Use Brotli compression (quality " << BROTLI_MIN_QUALITY << "-" << BROTLI_MAX_QUALITY << ", default " << BROTLI_DEFAULT_QUALITY << ")\n" |
| 56 | << " -s,--snappy Use Snappy compression (default format; recommended for qapitrace)\n" |
| 57 | << " -z,--zstd[=QUALITY] Use Zstandard (seekable) compression (quality 1-22)\n" |
| 58 | << " -g,--zlib Use ZLib (Gzip) compression\n" |
| 59 | << "\n"; |
| 60 | } |
| 61 | |
| 62 | const static char * |
| 63 | shortOptions = "hbstz"; |